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')
15 source=(https://github.com/Nitrokey/libnitrokey/releases/download/v${pkgver}/libnitrokey-v${pkgver}.tar.gz{,.sig})
16 sha512sums=('f986824f642f36d3cd3ebad6fd354843f6045cf0b619f971394f3917f1b447ca72ddae81bdba1886ac95797f07a90b702441b81cbc47618ee629364a348f96ff'
18 b2sums=('02166746e5607bad6d89af195ca08a9c780801e5416553a290ac5e8875aa769afdcec4ad02da8ab85f66ea85772780ac74eacde06c0be5a094247c7421104262'
20 validpgpkeys=('868184069239FF65DE0BCD7DD9BAE35991DE5B22') # Szczepan Zalega <szczepan.zalega@gmail.com>
24 -DBUILD_SHARED_LIBS=ON \
25 -DCOMPILE_OFFLINE_TESTS=ON \
26 -DCMAKE_INSTALL_PREFIX=/usr \
27 -DCMAKE_INSTALL_LIBDIR=lib \
29 make -C build VERBOSE=1
33 ctest -VV --test-dir build
38 hidapi libusb libhidapi-libusb.so
40 make -C build DESTDIR="${pkgdir}" install