31 lines
992 B
Ruby
31 lines
992 B
Ruby
class Archivemount < Formula
|
|
desc "File system for accessing archives using libarchive"
|
|
homepage "https://www.cybernoia.de/software/archivemount.html"
|
|
url "https://www.cybernoia.de/software/archivemount/archivemount-0.9.1.tar.gz"
|
|
sha256 "c529b981cacb19541b48ddafdafb2ede47a40fcaf16c677c1e2cd198b159c5b3"
|
|
|
|
bottle do
|
|
rebuild 1
|
|
sha256 cellar: :any_skip_relocation, x86_64_linux: "ac01adc4cf171af9509390a108469579aaaccb9eada8a57e54c10419ad239b3e"
|
|
end
|
|
|
|
depends_on "pkg-config" => :build
|
|
depends_on "libarchive"
|
|
depends_on "libfuse@2"
|
|
depends_on :linux # on macOS, requires closed-source macFUSE
|
|
|
|
def install
|
|
ENV.append_to_cflags "-I/usr/local/include/osxfuse"
|
|
system "./configure", "--disable-debug",
|
|
"--disable-dependency-tracking",
|
|
"--disable-silent-rules",
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
system bin/"archivemount", "--version"
|
|
end
|
|
end
|