aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJonathan Wilkins2013-04-12 05:01:49 -0700
committerAdam Vandenberg2013-08-04 21:29:59 -0700
commit83ea119f167e17024325e0451b6da2315d3f989e (patch)
treeb5120ecd69df46b048ce328a90738298e547cdac /Library
parent2bc8ec368b9ba0b3f9da84427312f24a80664600 (diff)
downloadhomebrew-83ea119f167e17024325e0451b6da2315d3f989e.tar.bz2
torrentcheck 1.00
Closes #19147. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/torrentcheck.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/Library/Formula/torrentcheck.rb b/Library/Formula/torrentcheck.rb
new file mode 100644
index 000000000..7b0e01dde
--- /dev/null
+++ b/Library/Formula/torrentcheck.rb
@@ -0,0 +1,17 @@
+require 'formula'
+
+class Torrentcheck < Formula
+ homepage 'http://torrentcheck.sourceforge.net/'
+ url 'http://sourceforge.net/projects/torrentcheck/files/torrentcheck-1.00.zip'
+ sha256 'a839f9ac9669d942f83af33db96ce9902d84f85592c99b568ef0f5232ff318c5'
+
+ def install
+ inreplace "torrentcheck.c", "#include <malloc.h>", ""
+ system ENV.cc, ENV.cflags, "torrentcheck.c", "sha1.c", "-o", "torrentcheck"
+ bin.install 'torrentcheck'
+ end
+
+ def test
+ system "#{bin}/torrentcheck"
+ end
+end