homebrew-core/Formula/yubico-piv-tool.rb
2016-04-13 21:08:44 +01:00

27 lines
1,007 B
Ruby

class YubicoPivTool < Formula
desc "Command-line tool for the YubiKey NEO PIV applet"
homepage "https://developers.yubico.com/yubico-piv-tool/"
url "https://developers.yubico.com/yubico-piv-tool/Releases/yubico-piv-tool-1.3.0.tar.gz"
sha256 "101f7ce0ac84073da538db398aa4f2b4ae004e0baf44017cf1470811f99f3451"
bottle do
cellar :any
sha256 "e6ac1b2fa28182ad24812d12ba2da923497e549e84305a64d64f0e7d23088d63" => :el_capitan
sha256 "e375fe81fe2ebd919d26114036c77a9b0ea1f1a3c1a161cdb4c7068703cc2f18" => :yosemite
sha256 "e2fc470de0875e2f7ec3f89231fdd98cba32c1bd4bb65082b71c64b2b1ad89d3" => :mavericks
end
depends_on "pkg-config" => :build
depends_on "openssl"
def install
system "./configure", "--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}"
system "make", "install"
end
test do
assert_match "yubico-piv-tool 1.3.0", shell_output("#{bin}/yubico-piv-tool --version")
end
end