32 lines
1.7 KiB
Ruby
32 lines
1.7 KiB
Ruby
class Zsync < Formula
|
|
desc "File transfer program"
|
|
homepage "http://zsync.moria.org.uk/"
|
|
url "http://zsync.moria.org.uk/download/zsync-0.6.2.tar.bz2"
|
|
sha256 "0b9d53433387aa4f04634a6c63a5efa8203070f2298af72a705f9be3dda65af2"
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, arm64_big_sur: "0ee85fb722fa125e4323e14732d4de448f3751e9445e2ec6933fce0ee38d5a90"
|
|
sha256 cellar: :any_skip_relocation, big_sur: "1be9e390c02555dbce349a76e0beb63231bc327f4326580b18679ff0307db446"
|
|
sha256 cellar: :any_skip_relocation, catalina: "333d4b2be5c1b6621bf7e7ac87199da1c5ec24a3cdb408c97ed733b6fafb89a1"
|
|
sha256 cellar: :any_skip_relocation, mojave: "9fa9f958c45a87c1a4e9b2ccdc95e732bb8ab248843ec3f0554e5b412d7f1ae5"
|
|
sha256 cellar: :any_skip_relocation, high_sierra: "b766bfc58f753376213e234d8e0e4238af1be39f77f239370583464040758fd6"
|
|
sha256 cellar: :any_skip_relocation, sierra: "8d6e7eade289c62689e752151021e7bccac7900a5e7217e8885f2c38aec42c2c"
|
|
sha256 cellar: :any_skip_relocation, el_capitan: "9bbe0e102ca6a2b7ca57af6b2b29984f7da59ce97d15ce550bbbb206f1ad1815"
|
|
sha256 cellar: :any_skip_relocation, yosemite: "b7436466e25e1fe44e2169059d613d9df279a69c31183f6cacce953fc6a47e8b"
|
|
sha256 cellar: :any_skip_relocation, mavericks: "c44baf1fc7c83e88bb255307121de1546a0b89d43048e6c0f951648a649bc5fd"
|
|
end
|
|
|
|
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
|