Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
require "formula"
class PinentryMac < Formula
head "https://github.com/GPGTools/pinentry-mac.git"
def install
system "make"
prefix.install "build/Release/pinentry-mac.app"
bin.write_exec_script "#{prefix}/pinentry-mac.app/Contents/MacOS/pinentry-mac"
end
test do
system "echo BYE | #{bin}/pinentry-mac"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment