archrelease: copy trunk to extra-x86_64
[arch-packages.git] / libnitrokey / repos / extra-x86_64 / PKGBUILD
blob650830642b568a4874bba1848556a38c2a538856
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 options=(debug)
16 source=(https://github.com/Nitrokey/libnitrokey/releases/download/v${pkgver}/libnitrokey-v${pkgver}.tar.gz{,.sig})
17 sha512sums=('f986824f642f36d3cd3ebad6fd354843f6045cf0b619f971394f3917f1b447ca72ddae81bdba1886ac95797f07a90b702441b81cbc47618ee629364a348f96ff'
18             'SKIP')
19 b2sums=('02166746e5607bad6d89af195ca08a9c780801e5416553a290ac5e8875aa769afdcec4ad02da8ab85f66ea85772780ac74eacde06c0be5a094247c7421104262'
20         'SKIP')
21 validpgpkeys=('868184069239FF65DE0BCD7DD9BAE35991DE5B22') # Szczepan Zalega <szczepan.zalega@gmail.com>
23 build() {
24   cmake -B build \
25     -DBUILD_SHARED_LIBS=ON \
26     -DCOMPILE_OFFLINE_TESTS=ON \
27     -DCMAKE_INSTALL_PREFIX=/usr \
28     -DCMAKE_INSTALL_LIBDIR=lib \
29     -S $pkgname-v$pkgver
30   make -C build VERBOSE=1
33 check() {
34   ctest -VV --test-dir build
37 package() {
38   depends+=(
39     hidapi libusb libhidapi-libusb.so
40   )
41   make -C build DESTDIR="${pkgdir}" install
44 # vim: ts=2 sw=2 et: