aboutsummaryrefslogtreecommitdiffstats
path: root/community/libu2f-server
diff options
context:
space:
mode:
Diffstat (limited to 'community/libu2f-server')
-rw-r--r--community/libu2f-server/APKBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/community/libu2f-server/APKBUILD b/community/libu2f-server/APKBUILD
new file mode 100644
index 0000000000..811313f877
--- /dev/null
+++ b/community/libu2f-server/APKBUILD
@@ -0,0 +1,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"