37 lines
1.5 KiB
Ruby
37 lines
1.5 KiB
Ruby
class HopenpgpTools < Formula
|
|
desc "Command-line tools for OpenPGP-related operations"
|
|
homepage "https://hackage.haskell.org/package/hopenpgp-tools"
|
|
url "https://hackage.haskell.org/package/hopenpgp-tools-0.23.6/hopenpgp-tools-0.23.6.tar.gz"
|
|
sha256 "3df2f26a8e1c2be92c54b1b347474464a23d213a7982dd4afb8c88c6b6325042"
|
|
license "AGPL-3.0-or-later"
|
|
head "https://salsa.debian.org/clint/hOpenPGP.git"
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, big_sur: "2055a599363bac4729fdb4313373b505fc2172a38061c84b5088ba1ca2785a3b"
|
|
sha256 cellar: :any_skip_relocation, catalina: "dfe8f2f9e6aa6b58482f94a6735323aaf3d25815bec18efed443a93d57b02b4b"
|
|
sha256 cellar: :any_skip_relocation, mojave: "6264bd67ac890655b532d0c9e65afcc830d3197cf8bd3669166561a1686e8837"
|
|
end
|
|
|
|
depends_on "cabal-install" => :build
|
|
depends_on "ghc@8.6" => :build
|
|
depends_on "pkg-config" => :build
|
|
depends_on "nettle"
|
|
|
|
resource "homebrew-key.gpg" do
|
|
url "https://gist.githubusercontent.com/zmwangx/be307671d11cd78985bd3a96182f15ea/raw/c7e803814efc4ca96cc9a56632aa542ea4ccf5b3/homebrew-key.gpg"
|
|
sha256 "994744ca074a3662cff1d414e4b8fb3985d82f10cafcaadf1f8342f71f36b233"
|
|
end
|
|
|
|
def install
|
|
system "cabal", "v2-update"
|
|
system "cabal", "v2-install", *std_cabal_v2_args
|
|
end
|
|
|
|
test do
|
|
resource("homebrew-key.gpg").stage do
|
|
linter_output = shell_output("#{bin}/hokey lint <homebrew-key.gpg 2>/dev/null")
|
|
assert_match "Homebrew <security@brew.sh>", linter_output
|
|
end
|
|
end
|
|
end
|