Files
tigerbrew/Library/Formula/ssdeep.rb

25 lines
760 B
Ruby

class Ssdeep < Formula
desc "Recursive piecewise hashing tool"
homepage "https://ssdeep-project.github.io/ssdeep/"
url "https://github.com/ssdeep-project/ssdeep/releases/download/release-2.14.1/ssdeep-2.14.1.tar.gz"
sha256 "ff2eabc78106f009b4fb2def2d76fb0ca9e12acf624cbbfad9b3eb390d931313"
license "GPL-2.0-or-later"
bottle do
cellar :any
end
def install
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
system "make", "install"
end
test do
expected = <<-EOS.undent
ssdeep,1.1--blocksize:hash:hash,filename
192:1xJsxlk/aMhud9Eqfpm0sfQ+CfQoDfpw3RtU:1xJsPMIdOqBCYLYYB7,"#{include}/fuzzy.h"
EOS
assert_equal expected, shell_output("#{bin}/ssdeep #{include}/fuzzy.h")
end
end