20 lines
916 B
Ruby
20 lines
916 B
Ruby
class Torrentcheck < Formula
|
|
desc "Command-line torrent viewer and hash checker"
|
|
homepage "https://torrentcheck.sourceforge.io/"
|
|
url "https://downloads.sourceforge.net/project/torrentcheck/torrentcheck-1.00.zip"
|
|
sha256 "a839f9ac9669d942f83af33db96ce9902d84f85592c99b568ef0f5232ff318c5"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "c1169f112306b1f235297cba2c8920894e063b9b1f774e36be75f3f2c194bda5" => :sierra
|
|
sha256 "ea6fbaa86be1c799c3baa4405aa1a750c2b3e1deb4bea0a412027d427f0922da" => :el_capitan
|
|
sha256 "46426cdf1c627f448d54895b7f08379b90948030be346753104f5f6a5fabca3b" => :yosemite
|
|
sha256 "ed300dfc8d1f7f7fe3c9c161b8f86cc6a379c7a4cca3914bb0c665d66ec6596a" => :mavericks
|
|
end
|
|
|
|
def install
|
|
inreplace "torrentcheck.c", "#include <malloc.h>", ""
|
|
system ENV.cc, "torrentcheck.c", "sha1.c", "-o", "torrentcheck", *ENV.cflags.to_s.split
|
|
bin.install "torrentcheck"
|
|
end
|
|
end
|