Merge pull request #1385 from thypon/nfc-tools

Nfc tools
This commit is contained in:
Juan RP 2015-04-24 16:22:03 +02:00
commit 3b6e80587d
4 changed files with 51 additions and 0 deletions

View file

@ -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

1
srcpkgs/libnfc-devel Symbolic link
View file

@ -0,0 +1 @@
libnfc

31
srcpkgs/libnfc/template Normal file
View file

@ -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 <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"
}
}

18
srcpkgs/mfoc/template Normal file
View file

@ -0,0 +1,18 @@
# Template file for 'mfoc'
pkgname=mfoc
version=0.10.7
revision=1
wrksrc="${pkgname}-${pkgname}-${version}"
build_style=gnu-configure
hostmakedepends="automake pkg-config"
makedepends="libnfc-devel"
short_desc="Mifare Classic Offline Cracker"
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
license="GPL-3"
homepage="http://nfc-tools.org"
distfiles="https://github.com/nfc-tools/mfoc/archive/${pkgname}-${version}.tar.gz"
checksum=2dfd8ffa4a8b357807680d190a91c8cf3db54b4211a781edc1108af401dbaad7
pre_configure() {
autoreconf -fi
}