void-packages/srcpkgs/libnfc/template

32 lines
985 B
Bash
Raw Normal View History

2015-04-23 23:59:19 +02:00
# Template file for 'libnfc'
pkgname=libnfc
version=1.7.1
revision=1
wrksrc="${pkgname}-${pkgname}-${version}"
build_style=cmake
short_desc="Low level NFC SDK and Programmers API"
hostmakedepends="cmake pkg-config"
makedepends="libusb-devel libusb-compat-devel"
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
license="GPL-3"
homepage="http://nfc-tools.org/"
distfiles="https://github.com/nfc-tools/libnfc/archive/libnfc-${version}.tar.gz"
checksum=30de35b4f1af3f57dab40d91ffb2275664a35859ff2b014ba7b226aa3f5465f5
pre_configure() {
sed -i "s|MODE=\"0664\", GROUP=\"plugdev\"|TAG+=\"uaccess\"|g" contrib/udev/42-pn53x.rules
}
post_install() {
vinstall contrib/udev/42-pn53x.rules 644 usr/lib/udev/rules.d/
vinstall contrib/linux/blacklist-libnfc.conf 644 usr/lib/modprobe.d/
}
libnfc-devel_package() {
depends="libnfc>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}