aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/torrentcheck.rb
blob: 95a40e883cf7039e583e4a1e17178a94421cff8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
require 'formula'

class Torrentcheck < Formula
  homepage 'http://torrentcheck.sourceforge.net/'
  url 'https://downloads.sourceforge.net/project/torrentcheck/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

  test do
    system "#{bin}/torrentcheck"
  end
end