homebrew-core/Formula/pngcrush.rb
2017-08-30 04:30:45 -07:00

25 lines
895 B
Ruby

class Pngcrush < Formula
desc "Optimizer for PNG files"
homepage "https://pmt.sourceforge.io/pngcrush"
url "https://downloads.sourceforge.net/project/pmt/pngcrush/1.8.13/pngcrush-1.8.13.tar.xz"
sha256 "8fc18bcbcc65146769241e20f9e21e443b0f4538d581250dce89b1e969a30705"
bottle do
cellar :any_skip_relocation
sha256 "f648ad0c664699f67bba8ba791358e8b294d0c1d975f026aa67fc1635badbc73" => :sierra
sha256 "2633aff1e7cec8bb6c55da5c4daf9f555c74e516ebcc5f3027589588f76d3e17" => :el_capitan
sha256 "5505ea179a71996eb4fab04feebd09ebbef7e8ea4c1efba1e0184333c1883d1b" => :yosemite
end
def install
system "make", "CC=#{ENV.cc}",
"LD=#{ENV.cc}",
"CFLAGS=#{ENV.cflags}",
"LDFLAGS=#{ENV.ldflags}"
bin.install "pngcrush"
end
test do
system "#{bin}/pngcrush", test_fixtures("test.png"), "/dev/null"
end
end