homebrew-core/Formula/ykclient.rb
2015-03-12 12:29:14 +00:00

28 lines
847 B
Ruby

class Ykclient < Formula
homepage "https://yubico.github.io/yubico-c-client/"
url "https://yubico.github.io/yubico-c-client/releases/ykclient-2.14.tar.gz"
sha256 "bd7ddaa1d88ec7be323738cabdf58ff99cb6d6cd3fe937c69b52fa9b3764d362"
bottle do
cellar :any
sha256 "a6bf94742e5dea65974107915a86ed3fdd97c4238279262fb6c49a153bf707da" => :yosemite
sha256 "c80e5dbdd8e4790db32c09f7ec7ce542a1ecaa3d26818711ab1b1f4d9779b516" => :mavericks
sha256 "1bc7d485b047e44cc7aca1530007f2480f36ddf26e1a4b5d55281ed587ade32c" => :mountain_lion
end
option :universal
depends_on "pkg-config" => :build
depends_on "help2man" => :build
def install
ENV.universal_binary if build.universal?
system "./configure", "--prefix=#{prefix}"
system "make", "install"
end
test do
system "#{bin}/ykclient", "--version"
end
end