aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/yubikey-personalization.rb
blob: 867f96390ae8018ce804f9417d0c6e6ef9c1eefa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
require 'formula'

class YubikeyPersonalization < Formula
  homepage 'https://www.yubico.com/develop/open-source-software/personalization-libraries/'
  url 'https://github.com/Yubico/yubikey-personalization/archive/v1.13.0.zip'
  sha1 'e82def981f5b2278593fe3366b68069085ceeb42'

  depends_on 'libtool' => :build
  depends_on 'automake' => :build
  depends_on 'autoconf' => :build
  depends_on 'libyubikey'

  def install
    system "autoreconf", "--install"
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}"
    system "make install"
  end

  test do
    system "#{bin}/ykchalresp"
  end
end