OCaml 4.14.0 rebuild
[arch-packages.git] / libnitrokey / trunk / PKGBUILD
blobc14b45d471afe3a2b3cb38fe26aec4794c739ae4
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.7
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' 'hidapi' 'libusb')
13 makedepends=('cmake' 'qt5-tools' 'catch2')
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=('1f9c689a64b99aef8b683c0bca0e0c8b07b51008c18a884571f0c38d1b73deac0d1067f6b93fc7181226655005828299662e75ec0885eaeeca1a5023de2348eb'
18             'SKIP')
19 b2sums=('42afdd903491d24fad80bbaf60efff8b22177aadf1b1b3d9c1c65ba981fe3313c9f5a3140bb4fef59629681537860c899a6bbfca330304afaaf16961f93ba619'
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   make -C build DESTDIR="${pkgdir}" install
41 # vim: ts=2 sw=2 et: