blob: 992b68cbd6c0de2042036e4cabb1f22996c419e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
require 'formula'
class Snzip < Formula
homepage 'https://github.com/kubo/snzip'
url 'https://github.com/downloads/kubo/snzip/snzip-0.9.0.tar.gz'
sha1 '04c02df2cfe80dbe7222dfd6b3e0b0747fdbc024'
depends_on 'snappy'
def install
system "./configure", "--prefix=#{prefix}"
system "make", "install"
end
test do
(testpath/'test.out').write "test"
system "snzip", "test.out"
system "snzip", "-d", "test.out.snz"
end
end
|