mirror of
https://github.com/gromgit/homebrew-fuse.git
synced 2025-12-08 09:11:37 +00:00
41 lines
1.3 KiB
Ruby
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.5.2/squashfuse-0.5.2.tar.gz"
|
|
sha256 "54e4baaa20796e86a214a1f62bab07c7c361fb7a598375576d585712691178f5"
|
|
license "BSD-2-Clause"
|
|
|
|
bottle do
|
|
root_url "https://ghcr.io/v2/gromgit/fuse"
|
|
sha256 cellar: :any, arm64_sonoma: "b2f082db1c2fa3a20ef405780f6f82cafab0f24b5f0951087eee701901b8376c"
|
|
sha256 cellar: :any, ventura: "a18fed686e4254c616665297a869b364ee1789fef823795e36c2e03380d837de"
|
|
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
|