blob: fa8375b91e6581491b901e1da1d06c4e88c09b77 [file] [log] [blame]
class LibzipFlutter < Formula
desc "C library for reading, creating, and modifying zip archives"
homepage "https://libzip.org/"
head do
url "https://flutter-mirrors.googlesource.com/libzip.git", :tag => "rel-1-5-2"
end
depends_on "cmake" => :build
conflicts_with "libtcod", :because => "both install `zip.h` header"
def install
system "cmake", ".", *std_cmake_args
system "make", "install"
end
test do
touch "file1"
system "zip", "file1.zip", "file1"
touch "file2"
system "zip", "file2.zip", "file1", "file2"
assert_match /\+.*file2/, shell_output("#{bin}/zipcmp -v file1.zip file2.zip", 1)
end
end