jdupes 1.9 (new formula)

Closes #21973.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
jd-a 2017-12-21 11:23:26 +01:00 committed by ilovezfs
parent 079c917f7a
commit e51ce90a19

18
Formula/jdupes.rb Normal file
View file

@ -0,0 +1,18 @@
class Jdupes < Formula
desc "Duplicate file finder and an enhanced fork of 'fdupes'"
homepage "https://github.com/jbruchon/jdupes"
url "https://github.com/jbruchon/jdupes/archive/v1.9.tar.gz"
sha256 "7f2505571c9fc8f76609b918106785f61e4a85af184309f738d7d847f1c2a1cf"
def install
system "make", "install", "PREFIX=#{prefix}"
end
test do
touch "a"
touch "b"
(testpath/"c").write("unique file")
dupes = shell_output("#{bin}/jdupes --zeromatch .").strip.split("\n").sort
assert_equal ["./a", "./b"], dupes
end
end