aboutsummaryrefslogtreecommitdiffstats
path: root/testing/yubico-piv-tool/APKBUILD
blob: b59889bc657b05d324d9120629132590ef7aff28 (plain)
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
# Contributor: Christophe BERAUD-DUFOUR <christophe.berauddufour@gmail.com>
# Maintainer: Christophe BERAUD-DUFOUR <christophe.berauddufour@gmail.com>
pkgname=yubico-piv-tool
pkgver=1.4.4
pkgrel=0
pkgdesc="PIV Tools for yubikey"
url="https://developers.yubico.com/yubico-piv-tool"
arch="all"
license="BSD"
makedepends="libc-dev gcc libressl-dev pcsc-lite-dev"
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="df01c3b87bb880414582b6569bd09c4b41718878bc709dcd3887f1236d2d7b81f409c34fa3d3287aba49d7ee7d7b20435755b9ad3bbf79b104ca8185140b3e29  yubico-piv-tool-1.4.4.tar.gz"