diff options
Diffstat (limited to 'community/libu2f-host')
-rw-r--r-- | community/libu2f-host/APKBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/community/libu2f-host/APKBUILD b/community/libu2f-host/APKBUILD new file mode 100644 index 0000000000..8c8d3675d4 --- /dev/null +++ b/community/libu2f-host/APKBUILD @@ -0,0 +1,35 @@ +# Contributor: Jakub Jirutka <jakub@jirutka.cz> +# Maintainer: Jakub Jirutka <jakub@jirutka.cz> +pkgname=libu2f-host +pkgver=1.1.10 +pkgrel=1 +pkgdesc="Yubico Universal 2nd Factor (U2F) Host C Library" +url="https://developers.yubico.com/libu2f-host/" +arch="all" +license="LGPL-2.1-or-later" +makedepends="hidapi-dev json-c-dev linux-headers eudev-dev" +subpackages="$pkgname-dev $pkgname-doc $pkgname-libs" +source="https://developers.yubico.com/libu2f-host/Releases/libu2f-host-$pkgver.tar.xz" + +build() { + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --localstatedir=/var \ + --disable-static \ + --with-udevrulesdir=/usr/lib/udev/rules.d + make +} + +check() { + make check +} + +package() { + make DESTDIR="$pkgdir" install +} + +sha512sums="91c5bf3994f1d3c9bd144f54b14b0404d839c15bef3c318619decdf1bd37214bcff33927af78a9826ff7d0bc9907c912a0e31104ae68d3a727a8436f2a1dbf7a libu2f-host-1.1.10.tar.xz" |