homebrew-fuse/Formula/squashfuse-mac.rb
gromgit 50111a66f4 squashfuse-mac 0.6.1
Closes #123.

Signed-off-by: Adrian Ho <215702+gromgit@users.noreply.github.com>
2025-05-10 01:08:37 +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.1/squashfuse-0.6.1.tar.gz"
sha256 "7b18a58c40a3161b5c329ae925b72336b5316941f906b446b8ed6c5a90989f8c"
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