From 63998c2cb367865aa502eae799ac2e3d404394bd Mon Sep 17 00:00:00 2001 From: Andrea Brancaleoni Date: Thu, 23 Apr 2015 23:59:19 +0200 Subject: [PATCH] New package: libnfc-1.7.1 --- common/shlibs | 1 + srcpkgs/libnfc-devel | 1 + srcpkgs/libnfc/template | 31 +++++++++++++++++++++++++++++++ 3 files changed, 33 insertions(+) create mode 120000 srcpkgs/libnfc-devel create mode 100644 srcpkgs/libnfc/template diff --git a/common/shlibs b/common/shlibs index a5436a34be..499201f06b 100644 --- a/common/shlibs +++ b/common/shlibs @@ -1993,3 +1993,4 @@ libudns.so.0 udns-0.4_1 libcriu.so.1 criu-1.5.1_2 libwebsockets.so.5 libwebsockets-1.4_1 libbitcoinconsensus.so.0 litecoin-0.10.1.2_1 +libnfc.so.0 libnfc-1.7.1_1 diff --git a/srcpkgs/libnfc-devel b/srcpkgs/libnfc-devel new file mode 120000 index 0000000000..849c7c5841 --- /dev/null +++ b/srcpkgs/libnfc-devel @@ -0,0 +1 @@ +libnfc \ No newline at end of file diff --git a/srcpkgs/libnfc/template b/srcpkgs/libnfc/template new file mode 100644 index 0000000000..d6f8f8478b --- /dev/null +++ b/srcpkgs/libnfc/template @@ -0,0 +1,31 @@ +# 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 " +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" + } +}