# Contributor: Jakub Jirutka # Maintainer: Jakub Jirutka pkgname=ykpers pkgver=1.19.0 pkgrel=0 pkgdesc="YubiKey Personalization library and tool" url="https://developers.yubico.com/yubikey-personalization/" arch="all" license="BSD-2-Clause" makedepends="libusb-dev yubico-c-dev" subpackages="$pkgname-dev $pkgname-doc" source="https://developers.yubico.com/yubikey-personalization/Releases/$pkgname-$pkgver.tar.gz" builddir="$srcdir/$pkgname-$pkgver" build() { cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ --with-udevrulesdir=/usr/lib/udev/rules.d \ --with-backend=libusb-1.0 make } check() { cd "$builddir" make check CFLAGS="$CFLAGS -D__GLIBC__" } package() { cd "$builddir" make DESTDIR="$pkgdir" install } sha512sums="05e3447656d52a2cd4092f1df2e99e1289414515644ae10daaa1be851811996904188039e3c8362059b56a43df37cba4396928dc5c546d4506f796b20e4ceabe ykpers-1.19.0.tar.gz"