homebrew-fuse/Formula/squashfuse-mac.rb

42 lines
1.3 KiB
Ruby
Raw Normal View History

2021-05-04 16:46:02 +08:00
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"
2021-05-04 16:46:02 +08:00
license "BSD-2-Clause"
bottle do
2025-02-11 13:20:58 +00:00
root_url "https://ghcr.io/v2/gromgit/fuse"
2025-03-07 08:25:41 +00:00
sha256 cellar: :any, arm64_sonoma: "aee0cf2b09b831d88fec6290c66b41540f7251bbea8fb1c27c139a2da566c793"
sha256 cellar: :any, ventura: "ed0b43ad61083d4b3c53985628b6b73233fa85f6a858cca8d6d687db5f3b7d3d"
2021-05-04 16:46:02 +08:00
end
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
depends_on "pkgconf" => :build
2021-05-04 16:46:02 +08:00
depends_on "lz4"
depends_on "lzo"
2021-05-06 14:09:40 +08:00
depends_on MacfuseRequirement
depends_on :macos
2021-05-04 16:46:02 +08:00
depends_on "squashfs"
depends_on "xz"
depends_on "zlib"
2021-05-04 16:46:02 +08:00
depends_on "zstd"
def install
setup_fuse
system "./configure", *std_configure_args
2021-05-04 16:46:02 +08:00
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