homebrew-fuse/Formula/avfs-mac.rb

50 lines
1.4 KiB
Ruby
Raw Normal View History

2021-04-27 11:25:53 +08:00
require_relative "../require/macfuse"
class AvfsMac < Formula
2021-04-27 11:25:53 +08:00
desc "Virtual file system that facilitates looking inside archives"
homepage "https://avf.sourceforge.io/"
2023-04-14 00:22:34 +08:00
url "https://downloads.sourceforge.net/project/avf/avfs/1.1.5/avfs-1.1.5.tar.bz2"
sha256 "ad9f3b64104d6009a058c70f67088f799309bf8519b14b154afad226a45272cf"
2022-11-25 17:44:29 +08:00
license all_of: [
"GPL-2.0-only",
"LGPL-2.0-only", # for shared library
"GPL-2.0-or-later", # modules/dav_ls.c
"Zlib", # zlib/*
]
livecheck do
url :stable
regex(%r{url=.*?/avfs[._-]v?(\d+(?:\.\d+)+)\.t}i)
end
2021-04-27 11:25:53 +08:00
bottle do
2025-02-12 10:20:32 +00:00
root_url "https://ghcr.io/v2/gromgit/fuse"
rebuild 1
sha256 arm64_sonoma: "05159912f28e370dcd6ade51a51f4ff3692aa51d7b289d438df55f86fa8c0102"
sha256 ventura: "96d445c9a324a03e0abe222f798b1b3cf3be8cd6e0b810e0f408314453df835d"
2021-04-27 11:25:53 +08:00
end
depends_on "pkgconf" => :build
depends_on "bzip2"
2021-04-27 11:25:53 +08:00
depends_on MacfuseRequirement
depends_on :macos
depends_on "xz"
depends_on "zlib"
2021-04-27 11:25:53 +08:00
def install
setup_fuse
system "./configure", "--disable-silent-rules",
"--enable-fuse",
"--enable-library",
"--with-system-zlib",
"--with-system-bzlib",
"--with-xz",
*std_configure_args
2021-04-27 11:25:53 +08:00
system "make", "install"
end
test do
system bin/"avfsd", "--version"
end
end