homebrew-core/Formula/ykpers.rb

22 lines
702 B
Ruby
Raw Normal View History

require 'formula'
class Ykpers < Formula
homepage 'http://yubico.github.io/yubikey-personalization/'
url 'http://yubico.github.io/yubikey-personalization/releases/ykpers-1.14.1.tar.gz'
sha1 '5ecc0d6bf9c58bdf825c2d8d158361fc61852ff8'
depends_on 'libyubikey'
depends_on 'json-c' => :recommended
depends_on 'pkg-config' => :build
def install
2014-02-26 04:56:23 +00:00
libyubikey_prefix = Formula["libyubikey"].opt_prefix
2013-06-30 17:53:46 +00:00
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--with-libyubikey-prefix=#{libyubikey_prefix}",
2013-06-30 17:53:46 +00:00
"--with-backend=osx"
system "make check"
system "make install"
end
end