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')
13 makedepends=('catch2' 'cmake' 'hidapi' 'libusb' 'qt5-tools')
14 provides=('libnitrokey.so')
16 source=(https://github.com/Nitrokey/libnitrokey/releases/download/v${pkgver}/libnitrokey-v${pkgver}.tar.gz{,.sig})
17 sha512sums=('f986824f642f36d3cd3ebad6fd354843f6045cf0b619f971394f3917f1b447ca72ddae81bdba1886ac95797f07a90b702441b81cbc47618ee629364a348f96ff'
19 b2sums=('02166746e5607bad6d89af195ca08a9c780801e5416553a290ac5e8875aa769afdcec4ad02da8ab85f66ea85772780ac74eacde06c0be5a094247c7421104262'
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
39 hidapi libusb libhidapi-libusb.so
41 make -C build DESTDIR="${pkgdir}" install