require_relative "../require/macfuse" class S3BackerMac < Formula desc "FUSE-based single file backing store via Amazon S3" homepage "https://github.com/archiecobbs/s3backer" url "https://archie-public.s3.amazonaws.com/s3backer/s3backer-2.0.2.tar.gz" sha256 "0b2432f08e9b986364e35674f39dd11afc1670be382b23cdb7375e86ce132a02" license "GPL-2.0-or-later" bottle do root_url "https://github.com/gromgit/homebrew-fuse/releases/download/s3-backer-mac-2.0.2" sha256 cellar: :any, arm64_monterey: "2f1d3837847ac2879eaa859c40f223c2956759a72768f8d03db1df03ec72cbf4" end depends_on "pkg-config" => :build depends_on MacfuseRequirement depends_on :macos depends_on "openssl@1.1" # Fix missing environ declaration patch do url "https://github.com/archiecobbs/s3backer/commit/303a669356fa7cd6bc95ac7076ce51b1cab3970a.patch?full_index=1" sha256 "b887d4498ae6a5f69e03b0f43db6f8ba0fba9907195cf706806e0ba9bd10ac5f" end def install setup_fuse system "./configure", "--prefix=#{prefix}" system "make", "install" end test do system bin/"s3backer", "--version" end end