aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/cksfv.rb
blob: 89df753452b4b8492dfe31b089e5c4551c665528 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
require 'formula'

class Cksfv < Formula
  homepage 'http://zakalwe.fi/~shd/foss/cksfv/'
  url 'http://zakalwe.fi/~shd/foss/cksfv/files/cksfv-1.3.14.tar.bz2'
  sha1 'f6da3a559b2862691a2be6d2be0aac66cd624885'

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

  test do
    path = testpath/"foo"
    path.write "abcd"

    assert shell_output("#{bin}/cksfv #{path}").include?("#{path} ED82CD11")
  end
end