homebrew-fuse/Formula/gocryptfs-mac.rb
gromgit fa84c2e82d gocryptfs-mac 2.5.4
Closes #120.

Signed-off-by: Adrian Ho <215702+gromgit@users.noreply.github.com>
2025-05-10 01:17:33 +00:00

34 lines
1.1 KiB
Ruby

require_relative "../require/macfuse"
class GocryptfsMac < Formula
desc "Encrypted overlay filesystem written in Go"
homepage "https://nuetzlich.net/gocryptfs/"
url "https://github.com/rfjakob/gocryptfs/releases/download/v2.5.4/gocryptfs_v2.5.4_src-deps.tar.gz"
sha256 "0db47fe41f46d1ff5b3ff4f1cc1088ab324a95af03995348435dcc20a5ff0282"
license "MIT"
bottle do
root_url "https://ghcr.io/v2/gromgit/fuse"
sha256 cellar: :any, arm64_sonoma: "9a6e12efa94e5bfac64e8550a2ab7f1d90e2b518ea0d87a1e5ecf08871506a8c"
sha256 cellar: :any, ventura: "ef83ab47b9520b45482beb97b02b163e6a4d448ca00f98cb8fb395443862e59b"
end
depends_on "go" => :build
depends_on "pkg-config" => :build
depends_on MacfuseRequirement
depends_on :macos
depends_on "openssl@3"
def install
setup_fuse
system "./build.bash"
bin.install "gocryptfs", "gocryptfs-xray/gocryptfs-xray"
man1.install "Documentation/gocryptfs.1", "Documentation/gocryptfs-xray.1"
end
test do
(testpath/"encdir").mkpath
pipe_output("#{bin}/gocryptfs -init #{testpath}/encdir", "password", 0)
assert_path_exists testpath/"encdir/gocryptfs.conf"
end
end