1 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
2 # Maintainer: David Runge <dvzrv@archlinux.org>
3 # Contributor: Étienne Deparis <etienne@depar.is>
8 pkgdesc='Communicate with Nitrokey stick devices in a clean and easy manner'
9 url='https://www.nitrokey.com'
12 depends=('glibc' 'gcc-libs' 'hidapi' 'libusb')
13 makedepends=('cmake' 'qt5-tools' 'catch2')
14 provides=('libnitrokey.so')
16 source=(https://github.com/Nitrokey/libnitrokey/releases/download/v${pkgver}/libnitrokey-v${pkgver}.tar.gz{,.sig})
17 sha512sums=('1f9c689a64b99aef8b683c0bca0e0c8b07b51008c18a884571f0c38d1b73deac0d1067f6b93fc7181226655005828299662e75ec0885eaeeca1a5023de2348eb'
19 b2sums=('42afdd903491d24fad80bbaf60efff8b22177aadf1b1b3d9c1c65ba981fe3313c9f5a3140bb4fef59629681537860c899a6bbfca330304afaaf16961f93ba619'
21 validpgpkeys=('868184069239FF65DE0BCD7DD9BAE35991DE5B22') # Szczepan Zalega <szczepan.zalega@gmail.com>
25 -DBUILD_SHARED_LIBS=ON \
26 -DCOMPILE_OFFLINE_TESTS=ON \
27 -DCMAKE_INSTALL_PREFIX=/usr \
28 -DCMAKE_INSTALL_LIBDIR=lib \
30 make -C build VERBOSE=1
34 ctest -VV --test-dir build
38 make -C build DESTDIR="${pkgdir}" install