homebrew-core/Formula/cmix.rb

20 lines
574 B
Ruby
Raw Normal View History

class Cmix < Formula
desc "Data compression program with high compression ratio"
homepage "https://www.byronknoll.com/cmix.html"
url "https://github.com/byronknoll/cmix/archive/v17.tar.gz"
version "17.0.0"
sha256 "31af51dd0be70c9c3c724911b60a46c11860e9fabb59860d541c869966a84c46"
def install
system "make"
bin.install "cmix"
end
test do
(testpath/"foo").write "test"
system "#{bin}/cmix", "-c", "foo", "foo.cmix"
system "#{bin}/cmix", "-d", "foo.cmix", "foo.unpacked"
assert_equal "test", shell_output("cat foo.unpacked")
end
end