homebrew-fuse/Formula/securefs-mac.rb
2022-06-16 15:46:17 +08:00

34 lines
1.4 KiB
Ruby

require_relative "../require/macfuse"
class SecurefsMac < Formula
desc "Filesystem with transparent authenticated encryption"
homepage "https://github.com/netheril96/securefs"
url "https://github.com/netheril96/securefs.git",
tag: "0.13.0",
revision: "1705d14b8fef5ebb826a74549d609c6ab6cb63f7"
license "MIT"
head "https://github.com/netheril96/securefs.git"
bottle do
root_url "https://github.com/gromgit/homebrew-fuse/releases/download/securefs-mac-0.13.0"
sha256 cellar: :any_skip_relocation, arm64_monterey: "d4befffc32ea6cfd3b3a64efc297d65b10f55696477a57c47f55ea1286ca6702"
sha256 cellar: :any, monterey: "cd01d4f2acccf83ac6d6126655ef6ed90efcfe160c635811d6eb4f53bd9d0ba5"
sha256 cellar: :any, big_sur: "664cf88693667af20d27239d00120ba58a4bcbf341ed051a68be21b7df0c043c"
sha256 cellar: :any, catalina: "c530c8f50c3c7515fb47504c14c2f1325d8e69fe7d37ced432e6d3bdb38648f1"
sha256 cellar: :any, mojave: "a584a77dcb42a7fb9f3000e2c91c504ca9b399897d1f25f22aa472e89ab71b29"
end
depends_on "cmake" => :build
depends_on MacfuseRequirement
depends_on :macos
def install
setup_fuse
system "cmake", ".", *fuse_cmake_args, *std_cmake_args
system "make", "install"
end
test do
system "#{bin}/securefs", "version" # The sandbox prevents a more thorough test
end
end