28 lines
1.3 KiB
Ruby
28 lines
1.3 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, 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
|