aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/torrentcheck.rb
blob: 91a0fa39e10d7a008bdf5b47aa8176ebd159415c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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, "torrentcheck.c", "sha1.c", "-o", "torrentcheck", *ENV.cflags.to_s.split
    bin.install 'torrentcheck'
  end
end