homebrew-core/Formula/pinentry-mac.rb

32 lines
936 B
Ruby
Raw Normal View History

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"
2014-10-22 05:57:42 +00:00
bottle do
cellar :any
sha1 "d518025f018b5fbed420c4f1d0f9bee2bdd3fda8" => :yosemite
sha1 "cfe4459ff2aa5390e192046589063e14e33aee85" => :mavericks
sha1 "4d80f3954ddb16618074d9d978f3a83aedddb8db" => :mountain_lion
end
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