aboutsummaryrefslogtreecommitdiffstats
path: root/testing/yubico-piv-tool/APKBUILD
blob: c3db34925b630c0baf34b2e61203853eb04d80c4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Contributor: Christophe BERAUD-DUFOUR <christophe.berauddufour@gmail.com>
# Maintainer: Christophe BERAUD-DUFOUR <christophe.berauddufour@gmail.com>
pkgname=yubico-piv-tool
pkgver=1.6.2
pkgrel=0
pkgdesc="PIV Tools for yubikey"
url="https://developers.yubico.com/yubico-piv-tool"
arch="all"
license="BSD"
makedepends="openssl-dev pcsc-lite-dev"
checkdepends="check-dev bash"
subpackages="$pkgname-dev $pkgname-doc"
source="https://developers.yubico.com/$pkgname/Releases/$pkgname-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--disable-static
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="43df64a3741cc18818f9cba9f2263cc479005184c21a5200d4f59b5469c6768d2190f8de964d30c4343edb5c0bbdf3c29ea650b8503053728a6e498e302da9a0  yubico-piv-tool-1.6.2.tar.gz"