homebrew-fuse/Formula/squashfuse-mac.rb

44 lines
1.4 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.5.2/squashfuse-0.5.2.tar.gz"
sha256 "54e4baaa20796e86a214a1f62bab07c7c361fb7a598375576d585712691178f5"
2021-05-04 16:46:02 +08:00
license "BSD-2-Clause"
bottle do
root_url "https://github.com/gromgit/homebrew-fuse/releases/download/squashfuse-mac-0.1.104"
2023-06-07 00:01:22 +08:00
rebuild 1
sha256 cellar: :any, arm64_monterey: "d54920002790e1cbf24e78ae5e0bfdd4d88ab8f0b8282c20d902e9202f474569"
2023-06-07 00:55:02 +08:00
sha256 cellar: :any, monterey: "908aafed75c0fba5d1e4da9a5342b93ab7e10b1c2cc5f6949c0a63e8fefdc4f9"
2023-06-07 00:35:54 +08:00
sha256 cellar: :any, big_sur: "d90a812d02c57e0515044fb7294d50216e8d68503da793234f5759444bf8f079"
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