archrelease: copy trunk to staging-x86_64
[arch-packages.git] / libnitrokey / trunk / PKGBUILD
blob6aac2411a8afaaf9da852ce54d7a600de1409f6c
1 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
2 # Maintainer: David Runge <dvzrv@archlinux.org>
3 # Contributor: Étienne Deparis <etienne@depar.is>
5 pkgname=libnitrokey
6 pkgver=3.8
7 pkgrel=1
8 pkgdesc='Communicate with Nitrokey stick devices in a clean and easy manner'
9 url='https://www.nitrokey.com'
10 arch=('x86_64')
11 license=('LGPL3')
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'
17             'SKIP')
18 b2sums=('02166746e5607bad6d89af195ca08a9c780801e5416553a290ac5e8875aa769afdcec4ad02da8ab85f66ea85772780ac74eacde06c0be5a094247c7421104262'
19         'SKIP')
20 validpgpkeys=('868184069239FF65DE0BCD7DD9BAE35991DE5B22') # Szczepan Zalega <szczepan.zalega@gmail.com>
22 build() {
23   cmake -B build \
24     -DBUILD_SHARED_LIBS=ON \
25     -DCOMPILE_OFFLINE_TESTS=ON \
26     -DCMAKE_INSTALL_PREFIX=/usr \
27     -DCMAKE_INSTALL_LIBDIR=lib \
28     -S $pkgname-v$pkgver
29   make -C build VERBOSE=1
32 check() {
33   ctest -VV --test-dir build
36 package() {
37   depends+=(
38     hidapi libusb libhidapi-libusb.so
39   )
40   make -C build DESTDIR="${pkgdir}" install
43 # vim: ts=2 sw=2 et: