homebrew-core/Formula/zsync.rb

19 lines
532 B
Ruby

class Zsync < Formula
homepage "http://zsync.moria.org.uk/"
url "http://zsync.moria.org.uk/download/zsync-0.6.2.tar.bz2"
sha1 "5e69f084c8adaad6a677b68f7388ae0f9507617a"
def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make", "install"
end
test do
touch "#{testpath}/foo"
system "#{bin}/zsyncmake", "foo"
sha1 = "da39a3ee5e6b4b0d3255bfef95601890afd80709"
File.read("#{testpath}/foo.zsync") =~ /^SHA-1: #{sha1}$/
end
end