homebrew-core/Formula/torrentcheck.rb
Jonathan Wilkins a10eb95cd6 torrentcheck 1.00
Closes Homebrew/homebrew#19147.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-08-04 21:29:59 -07:00

17 lines
500 B
Ruby

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