blob: 751fbf086e59be467d719b989fa3ecee84e57f72 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Maintainer: Étienne Deparis <etienne@depar.is>
pkgname=libnitrokey
pkgver=3.0
pkgrel=3
pkgdesc="Communicate with Nitrokey stick devices in a clean and easy manner"
arch=('i686' 'x86_64')
url="https://www.nitrokey.com"
license=('LGPL3')
depends=(hidapi)
makedepends=('cmake' 'qt5-tools' 'libcatch-cpp-headers')
source=("https://github.com/Nitrokey/${pkgname}/archive/v${pkgver}.tar.gz")
sha256sums=('9bc47efbd2f97af859d7bb4d07556f7f83e58f6de63fdba92d75b999b578ec15')
prepare() {
cd "$srcdir/$pkgname-$pkgver/"
mkdir -p build
}
build() {
cd "$srcdir/$pkgname-$pkgver/build"
cmake .. \
-DLIBNITROKEY_STATIC=OFF \
-DCOMPILE_TESTS=OFF \
-DUSE_CLANG=OFF \
-DCMAKE_INSTALL_PREFIX=/usr
make
}
package() {
cd "$srcdir/$pkgname-$pkgver/build"
make DESTDIR="$pkgdir" install
cd ..
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
cd "${pkgdir}/usr/"
mv lib64 lib
}
|