homebrew-core/Formula/jpeg-archive.rb

32 lines
1.8 KiB
Ruby

class JpegArchive < Formula
desc "Utilities for archiving JPEGs for long term storage"
homepage "https://github.com/danielgtaylor/jpeg-archive"
url "https://github.com/danielgtaylor/jpeg-archive/archive/v2.2.0.tar.gz"
sha256 "3da16a5abbddd925dee0379aa51d9fe0cba33da0b5703be27c13a2dda3d7ed75"
license "MIT"
revision 1
bottle do
sha256 cellar: :any_skip_relocation, arm64_ventura: "fab1849787fa6dc209963175b418748a9b92bdb64f0a39a4329afac2d8b262f0"
sha256 cellar: :any_skip_relocation, arm64_monterey: "cbaf592384b0d9906eb44217daa1971ec19d571cbc4cd25c2a14caa2451428e8"
sha256 cellar: :any_skip_relocation, arm64_big_sur: "6608df468a7af8298e39f54afc7b391cd9660bdd88783850577d86862b6ccb51"
sha256 cellar: :any_skip_relocation, ventura: "0009726c390613fd0ed7f47a95383df4454efd2291da691129539f6ab32422f6"
sha256 cellar: :any_skip_relocation, monterey: "3461975fc932a94798f2d7c6cad3f030081a29a24a31bc391e2344c6aa6ed177"
sha256 cellar: :any_skip_relocation, big_sur: "41ac0d9c5bd290d77e7e5548a2257c6455f9f87265b06b5dc4e02ac7836dfc22"
sha256 cellar: :any_skip_relocation, catalina: "222d7258f63f000794693bc5912c88ce42d0a33473a8acbbc585821655c9b8dd"
sha256 cellar: :any_skip_relocation, mojave: "2df1b3a007b7553addc977582d0c38d5007892f9e8a866a4fc9cda9b8f3b2af2"
sha256 cellar: :any_skip_relocation, high_sierra: "6f873847a8c7ad6420fe7700219ae13be39d12075c92921b364cb059ed5bf552"
sha256 cellar: :any_skip_relocation, x86_64_linux: "620b18311f4e6b970b2b9ae2c2cd6ee5625a791f158b3c2f219e617920d94796"
end
depends_on "mozjpeg"
def install
system "make", "install", "PREFIX=#{prefix}", "MOZJPEG_PREFIX=#{Formula["mozjpeg"].opt_prefix}"
end
test do
system "#{bin}/jpeg-recompress", test_fixtures("test.jpg"), "output.jpg"
end
end