homebrew-core/Formula/afsctool.rb

23 lines
581 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Afsctool < Formula
homepage 'http://brkirch.wordpress.com/afsctool/'
url 'https://docs.google.com/uc?export=download&id=0BwQlnXqL939ZQjBQNEhRQUo0aUk'
version '1.6.4'
sha1 '216d7ff54bad947781d9b49f9754c5d3c07349be'
def install
cd "afsctool_34" do
2010-08-10 15:05:31 +00:00
system "#{ENV.cc} #{ENV.cflags} -lz -framework CoreServices -o afsctool afsctool.c"
bin.install "afsctool"
end
end
test do
path = testpath/"foo"
path.write "some text here."
system "#{bin}/afsctool", "-c", path
system "#{bin}/afsctool", "-v", path
end
end