Skip to content

Commit

Permalink
gifski 0.6.2 (new formula)
Browse files Browse the repository at this point in the history
Closes #20241.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
  • Loading branch information
danielbayley authored and fxcoudert committed Dec 14, 2017
1 parent 913dea8 commit 07cdc37
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Formula/gifski.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
class Gifski < Formula
desc "Highest-quality GIF encoder based on pngquant"
homepage "https://gif.ski/"
url "https://github.com/ImageOptim/gifski/archive/0.6.2.tar.gz"
sha256 "4f0379aa05a5e99fd6a9efb851efa7553e9663ec800ac7247fb7e26505a4b225"

depends_on "pkg-config" => :build
depends_on "rust" => :build
depends_on "ffmpeg"

def install
system "cargo", "build", "--release", "--features=video"
bin.install "target/release/gifski"
end

test do
system bin/"gifski", "-o", "out.gif", test_fixtures("test.png")
assert_predicate testpath/"out.gif", :exist?
refute_predicate (testpath/"out.gif").size, :zero?
end
end

0 comments on commit 07cdc37

Please sign in to comment.