# Template file for 'libnitrokey' pkgname=libnitrokey version=3.8 revision=3 build_style=cmake hostmakedepends="pkg-config" makedepends="hidapi-devel" depends="nitrokey-udev-rules" short_desc="Communicate with Nitrokey devices in a clean and easy manner" maintainer="Julio Galvan " license="LGPL-3.0-or-later" homepage="https://github.com/Nitrokey/libnitrokey" distfiles="https://github.com/Nitrokey/libnitrokey/releases/download/v${version}/libnitrokey-v${version}.tar.gz" checksum=3b7ebcfc47b2c45313bc5f17842f0160cbaf87f41d2621af18c5b56837e393a1 post_install() { # udev rules are now shipped separately # https://github.com/Nitrokey/nitrokey-udev-rules rm "$PKGDESTDIR/usr/lib/udev/rules.d/41-nitrokey.rules" } libnitrokey-devel_package() { short_desc+=" - development files" depends="${makedepends} ${sourcepkg}>=${version}_${revision}" pkg_install() { vmove usr/include vmove usr/lib/pkgconfig } }