aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libu2f-server/APKBUILD
blob: 811313f8778ab6a683c70cdd9f1b1cdaf727a621 (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: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=libu2f-server
pkgver=1.1.0
pkgrel=3
pkgdesc="Yubico Universal 2nd Factor (U2F) Server C Library"
url="https://developers.yubico.com/libu2f-server/"
arch="all !s390x"
license="BSD-2-Clause"
makedepends="check-dev gengetopt-dev help2man json-c-dev openssl-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="https://developers.yubico.com/libu2f-server/Releases/$pkgname-$pkgver.tar.xz"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--enable-tests
	make
}

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

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

sha512sums="ebdb7c8c20727f37f4e31d8f16df7966603374f78478ada723a7b9bec1b0b0622caf6d12a65067ac8651f6088aaad61b2ad6ed51b9d6ef0dc45f031c974d8ff9  libu2f-server-1.1.0.tar.xz"