23.1.0-1
[arch-packages.git] / nitrokey-app / trunk / PKGBUILD
blob091c6f810ab164a40c256189775722b63d2fcca1
1 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
2 # Contributor: Étienne Deparis <etienne@depar.is>
3 # Contributor: Christoph J. Thompson <thompsonc@protonmail.ch>
5 pkgname=nitrokey-app
6 pkgver=1.4.2
7 pkgrel=1
8 pkgdesc='Nitrokey management application'
9 url='https://www.nitrokey.com'
10 arch=('x86_64')
11 license=('GPL3')
12 depends=('qt5-base' 'qt5-svg' 'hicolor-icon-theme' 'libnitrokey' 'libnitrokey.so')
13 makedepends=('cmake' 'qt5-tools' 'bash-completion' 'cppcodec')
14 source=(https://github.com/Nitrokey/nitrokey-app/releases/download/v${pkgver}/nitrokey-app-v${pkgver}.tar.gz{,.sig})
15 sha512sums=('5a8d1219cedb59737634ce9eee4c0b50a67471e55736e5255085b3c08f8aea0a716ae5ad817d39e40f67519f4987cde43b2d26e622f56c5d88d9104c59a31462'
16             'SKIP')
17 validpgpkeys=('868184069239FF65DE0BCD7DD9BAE35991DE5B22') # Szczepan Zalega <szczepan.zalega@gmail.com>
19 prepare() {
20   cd ${pkgname}-v${pkgver}
21   rm -r data/icons/ubuntu-mono-{dark,light} 3rdparty/cppcodec
22   ln -s /usr/include/cppcodec 3rdparty/cppcodec
25 build() {
26   cd ${pkgname}-v${pkgver}
27   cmake \
28     -B build \
29     -DCMAKE_BUILD_TYPE=None \
30     -DBUILD_SHARED_LIBS=ON \
31     -DCMAKE_INSTALL_PREFIX=/usr
32   make -C build
35 package() {
36   cd ${pkgname}-v${pkgver}
37   make -C build DESTDIR="${pkgdir}" install
40 # vim: ts=2 sw=2 et: