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
2023-04-14 00:22:34 +08:00
root_url "https://github.com/gromgit/homebrew-fuse/releases/download/avfs-mac-1.1.5"
2023-04-14 00:39:11 +08:00
sha256 arm64_monterey: "b68a4d79bebd62b4e7cc7ceff13aed1305e1e1db268cbbffa14ab3b26c4508be"
sha256 monterey: "9b0e55804b9c8b98a25aac295d0fb7ae352f9b446c35e210b260821e27ef0d9b"
sha256 big_sur: "5500a012293e374d1ed9476fe45c740c3739c15b416d503cde99fad1f9b3079d"
2021-04-27 11:25:53 +08:00
end
depends_on "pkg-config" => :build
depends_on MacfuseRequirement
depends_on :macos
depends_on "openssl@1.1"
depends_on "xz"
def install
setup_fuse
2021-04-27 11:25:53 +08:00
args = %W[
--disable-silent-rules
--enable-fuse
--enable-library
--with-ssl=#{Formula["openssl@1.1"].opt_prefix}
]
2022-11-25 17:44:29 +08:00
system "./configure", *std_configure_args, *args
2021-04-27 11:25:53 +08:00
system "make", "install"
end
test do
system bin/"avfsd", "--version"
end
end