diff options
Diffstat (limited to 'Library/Formula/jpeg-archive.rb')
| -rw-r--r-- | Library/Formula/jpeg-archive.rb | 15 | 
1 files changed, 15 insertions, 0 deletions
diff --git a/Library/Formula/jpeg-archive.rb b/Library/Formula/jpeg-archive.rb new file mode 100644 index 000000000..ad81089eb --- /dev/null +++ b/Library/Formula/jpeg-archive.rb @@ -0,0 +1,15 @@ +class JpegArchive < Formula +  homepage "https://github.com/danielgtaylor/jpeg-archive" +  url "https://github.com/danielgtaylor/jpeg-archive/archive/2.1.1.tar.gz" +  sha256 "494534f5308f99743f11f3a7c151a8d5ca8a5f1f8b61ea119098511d401bc618" + +  depends_on "mozjpeg" + +  def install +    system "make", "install", "PREFIX=#{prefix}" +  end + +  test do +    system "#{bin}/jpeg-recompress", test_fixtures("test.jpg"), "output.jpg" +  end +end  | 
