diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/torrentcheck.rb | 17 |
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 |
