homebrew-fuse/Formula/s3fs-mac.rb

38 lines
1.3 KiB
Ruby
Raw Normal View History

2021-05-04 13:04:13 +08:00
require_relative "../require/macfuse"
class S3fsMac < Formula
desc "FUSE-based file system backed by Amazon S3"
homepage "https://github.com/s3fs-fuse/s3fs-fuse/wiki"
2022-06-16 13:09:06 +08:00
url "https://github.com/s3fs-fuse/s3fs-fuse/archive/v1.91.tar.gz"
sha256 "f130fec375dc6972145c56f53e83ea7c98c82621406d0208a328989e5d900b0f"
2021-05-04 13:04:13 +08:00
license "GPL-2.0-or-later"
head "https://github.com/s3fs-fuse/s3fs-fuse.git"
bottle do
2022-06-16 13:09:06 +08:00
root_url "https://github.com/gromgit/homebrew-fuse/releases/download/s3fs-mac-1.91"
sha256 cellar: :any, arm64_monterey: "a433fd964e67240ff3135f19aa4de7e1dcdbe331a339ba52f7803241032810ea"
2022-06-16 13:57:49 +08:00
sha256 cellar: :any, big_sur: "b9e8bb0525cd245c65cc7008d81898f918e12589dcd6cebf1dbe5f0157988ed2"
2022-06-16 14:32:08 +08:00
sha256 cellar: :any, mojave: "6888b53265c1e3d0432d308acdc3b86779a949d89a77162555bafed73641508a"
2021-05-04 13:04:13 +08:00
end
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "pkg-config" => :build
depends_on "gnutls"
depends_on "libgcrypt"
depends_on MacfuseRequirement
depends_on :macos
2021-05-06 14:09:40 +08:00
depends_on "nettle"
2021-05-04 13:04:13 +08:00
def install
setup_fuse
2021-05-04 13:04:13 +08:00
system "./autogen.sh"
system "./configure", "--disable-dependency-tracking", "--with-gnutls", "--prefix=#{prefix}"
system "make", "install"
end
test do
system "#{bin}/s3fs", "--version"
end
end