aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/snzip.rb
blob: da01298bef5204b450866b9c1414732a49ab8cbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
require 'formula'

class Snzip < Formula
  homepage 'https://github.com/kubo/snzip'
  url 'https://bintray.com/artifact/download/kubo/generic/snzip-1.0.2.tar.gz'
  sha1 '6efa5f6e097a9bed10b526cfbf4062e2f547be56'

  bottle do
    cellar :any
    sha1 "6863e5d8a045551cc2b9aa2e66926a594a1cd2d6" => :yosemite
    sha1 "66d09b8b0fbbf772a61abfa64ab9e2e304a52532" => :mavericks
    sha1 "a5718543e78e7654a3ad8273c2af94b8c8a4855d" => :mountain_lion
  end

  depends_on 'snappy'

  def install
    system "./configure", "--prefix=#{prefix}"
    system "make", "install"
  end

  test do
    (testpath/'test.out').write "test"
    system "#{bin}/snzip", "test.out"
    system "#{bin}/snzip", "-d", "test.out.sz"
  end
end