homebrew-fuse/Formula/squashfuse-mac.rb
2025-03-07 08:25:41 +00:00

41 lines
1.3 KiB
Ruby

require_relative "../require/macfuse"
class SquashfuseMac < Formula
desc "FUSE filesystem to mount squashfs archives"
homepage "https://github.com/vasi/squashfuse"
url "https://github.com/vasi/squashfuse/releases/download/0.6.0/squashfuse-0.6.0.tar.gz"
sha256 "56ff48814d3a083fad0ef427742bc95c9754d1ddaf9b08a990d4e26969f8eeeb"
license "BSD-2-Clause"
bottle do
root_url "https://ghcr.io/v2/gromgit/fuse"
sha256 cellar: :any, arm64_sonoma: "aee0cf2b09b831d88fec6290c66b41540f7251bbea8fb1c27c139a2da566c793"
sha256 cellar: :any, ventura: "ed0b43ad61083d4b3c53985628b6b73233fa85f6a858cca8d6d687db5f3b7d3d"
end
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
depends_on "pkgconf" => :build
depends_on "lz4"
depends_on "lzo"
depends_on MacfuseRequirement
depends_on :macos
depends_on "squashfs"
depends_on "xz"
depends_on "zlib"
depends_on "zstd"
def install
setup_fuse
system "./configure", *std_configure_args
system "make", "install"
end
# Unfortunately, making/testing a squash mount requires sudo privileges, so
# just test that squashfuse execs for now.
test do
output = shell_output("#{bin}/squashfuse --version 2>&1", 254)
assert_match version.to_s, output
end
end