2011-03-10 05:11:03 +00:00
|
|
|
class Cksfv < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "File verification utility"
|
2015-08-03 12:55:31 +00:00
|
|
|
homepage "http://zakalwe.fi/~shd/foss/cksfv/"
|
|
|
|
url "http://zakalwe.fi/~shd/foss/cksfv/files/cksfv-1.3.14.tar.bz2"
|
|
|
|
sha256 "8f3c246f3a4a1f0136842a2108568297e66e92f5996e0945d186c27bca07df52"
|
2009-09-21 16:17:56 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--prefix=#{prefix}"
|
2015-08-03 12:55:31 +00:00
|
|
|
system "make", "install"
|
2009-09-21 16:17:56 +00:00
|
|
|
end
|
2014-02-11 18:17:11 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
path = testpath/"foo"
|
|
|
|
path.write "abcd"
|
|
|
|
|
2014-05-04 19:12:41 +00:00
|
|
|
assert shell_output("#{bin}/cksfv #{path}").include?("#{path} ED82CD11")
|
2014-02-11 18:17:11 +00:00
|
|
|
end
|
2009-09-21 16:17:56 +00:00
|
|
|
end
|