homebrew-core/Formula/pinentry-mac.rb
Filippo Valsorda 0d547ceb81 Add pinentry-mac v0.8.1
Closes Homebrew/homebrew#33458.

[jn: remove test pending resolution of 10.10 build bot issues]

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-10-22 19:45:58 -05:00

24 lines
700 B
Ruby

require "formula"
class PinentryMac < Formula
homepage "https://github.com/GPGTools/pinentry-mac"
url "https://github.com/GPGTools/pinentry-mac/archive/v0.8.1.tar.gz"
sha256 "79aaa11fa8076ff335b3a1f41c230ef7c8435a757705e6484199f562f26b490f"
head "https://github.com/GPGTools/pinentry-mac.git"
depends_on :xcode => :build
def install
system "make"
prefix.install "build/Release/pinentry-mac.app"
bin.write_exec_script "#{prefix}/pinentry-mac.app/Contents/MacOS/pinentry-mac"
end
def caveats; <<-EOS.undent
You can now set this as your pinentry program like
~/.gnupg/gpg-agent.conf
pinentry-program #{HOMEBREW_PREFIX}/bin/pinentry-mac
EOS
end
end