homebrew-core/Formula/oxipng.rb

25 lines
795 B
Ruby

class Oxipng < Formula
desc "Multithreaded PNG optimizer written in Rust"
homepage "https://github.com/shssoichiro/oxipng"
url "https://github.com/shssoichiro/oxipng/archive/v4.0.2.tar.gz"
sha256 "f540b788ac761ba20099c6710c3276dfdab9119906c1e9834b7648c0b633a000"
license "MIT"
bottle do
cellar :any_skip_relocation
sha256 "22501fe46163d2c9c88dc66fdf1babc314e58d151cf0ce2547f742d846da0d97" => :big_sur
sha256 "d06a103b94a394483f8bd916e0d30812ccdf46254591ae56000a81fcd68b2713" => :catalina
sha256 "fa5dc699252f50ecab26aea7edfe4c8e5fdcd21d06dbdf5efa2a09a79f3c3187" => :mojave
end
depends_on "rust" => :build
def install
system "cargo", "install", *std_cargo_args
end
test do
system "#{bin}/oxipng", "--pretend", test_fixtures("test.png")
end
end