homebrew-core/Formula/sops.rb
2018-09-27 19:58:35 +08:00

28 lines
923 B
Ruby

class Sops < Formula
desc "Editor of encrypted files"
homepage "https://github.com/mozilla/sops"
url "https://github.com/mozilla/sops/archive/3.1.1.tar.gz"
sha256 "f7966fd528e2c41a00a2a446fa6fe022911af8f7ce4a76b06feeba6873a04630"
head "https://github.com/mozilla/sops.git"
bottle do
cellar :any_skip_relocation
sha256 "99a813300fe2b1adcb0406a1e4339d7bdf3902c4731b65b2835060c94373c2b9" => :mojave
sha256 "bcc7b594c94c55f3a6e6abd7a0128aad10d664fe2e9a3c834262b08f4c987a49" => :high_sierra
sha256 "5567fb1646d2834098024e055c69d20909a1a6cde7aeb48cb446c513e4ff1076" => :sierra
end
depends_on "go" => :build
def install
ENV["GOPATH"] = buildpath
ENV["GOBIN"] = bin
(buildpath/"src/go.mozilla.org").mkpath
ln_s buildpath, "src/go.mozilla.org/sops"
system "make", "install"
end
test do
assert_match version.to_s, shell_output("#{bin}/sops --version 2>&1")
end
end