aboutsummaryrefslogtreecommitdiffstats
path: root/community/libnitrokey/APKBUILD
blob: 74c47126dd6c635e08357e08ae57159f6346e716 (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
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=libnitrokey
pkgver=3.5
pkgrel=0
arch="all"
url="https://nitrokey.com/"
pkgdesc="Communicate with Nitrokey devices in a clean and easy manner"
license="LGPL-3.0-or-later"
makedepends="cmake hidapi-dev"
source="https://github.com/Nitrokey/libnitrokey/archive/v$pkgver/libnitrokey-v$pkgver.tar.gz"
subpackages="$pkgname-dev"
options="!check" # No tests

build() {
	cmake \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	make
}

package() {
	DESTDIR="$pkgdir" make install
}

sha512sums="d2a95071e92d839c8cde4ac1435158bb469c25662f2988a4e824dbc0dfe83af841e6d04589293deddd77746dbec17b30c50fab69af58cc727ed5e0f2dbd0b5e7  libnitrokey-v3.5.tar.gz"