void-packages/srcpkgs/libnitrokey/template
2019-05-15 08:21:15 +02:00

27 lines
781 B
Bash

# Template file for 'libnitrokey'
pkgname=libnitrokey
version=3.4.1
revision=1
build_style=cmake
hostmakedepends="pkg-config"
makedepends="hidapi-devel"
short_desc="Communicate with Nitrokey devices in a clean and easy manner"
maintainer="Julio Galvan <juliogalvan@protonmail.com>"
license="LGPL-3.0"
homepage="https://github.com/Nitrokey/libnitrokey"
distfiles="${homepage}/archive/v${version}.tar.gz"
checksum=224c92023a7b8ef88e7c66d158c9593fb309956dca4523bc3c5d1615a137cef6
post_extract() {
# plugdev group is deprecated
sed -i 's/GROUP+="plugdev",//' data/41-nitrokey.rules
}
libnitrokey-devel_package() {
short_desc+=" - development files"
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
}
}