Skip to content

Instantly share code, notes, and snippets.

@jwilkins
Last active December 16, 2015 02:09
Show Gist options
  • Save jwilkins/5360696 to your computer and use it in GitHub Desktop.
Save jwilkins/5360696 to your computer and use it in GitHub Desktop.
torrentcheck formula for homebrew
require 'formula'
class Torrentcheck < Formula
url 'http://sourceforge.net/projects/torrentcheck/files/torrentcheck-1.00.zip'
homepage 'http://torrentcheck.sourceforge.net/'
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 "torrentcheck"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment