# HG changeset patch # User Pascal Bellard # Date 1362741404 -3600 # Node ID 4ccc5bd433bc37ddd9c4a8f9cb15b2de01921ae8 # Parent 7ae80fa5a40a05eb3a91be674d02383743e33b98 Add libnfc diff -r 7ae80fa5a40a -r 4ccc5bd433bc libnfc-dev/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/libnfc-dev/receipt Fri Mar 08 12:16:44 2013 +0100 @@ -0,0 +1,20 @@ +# SliTaz package receipt. + +PACKAGE="libnfc-dev" +VERSION="1.7.0-rc6" +CATEGORY="development" +SHORT_DESC="Near Field Communication (NFC) library, development files." +MAINTAINER="pascal.bellard@slitaz.org" +WEB_SITE="http://nfc-tools.org/index.php?title=Libnfc" +WANTED="libnfc" + +DEPENDS="libnfc" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib + cp -a $install/usr/include $fs/usr + cp -a $install/usr/lib/*a $fs/usr/lib + cp -a $install/usr/lib/pkgconfig $fs/usr/lib +} diff -r 7ae80fa5a40a -r 4ccc5bd433bc libnfc/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/libnfc/receipt Fri Mar 08 12:16:44 2013 +0100 @@ -0,0 +1,32 @@ +# SliTaz package receipt. + +PACKAGE="libnfc" +VERSION="1.7.0-rc6" +CATEGORY="development" +SHORT_DESC="Near Field Communication (NFC) library." +MAINTAINER="pascal.bellard@slitaz.org" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WEB_SITE="http://nfc-tools.org/index.php?title=Libnfc" +WGET_URL="http://libnfc.googlecode.com/files/$TARBALL" + +DEPENDS="libusb pcsc-lite" +BUILD_DEPENDS="pkg-config libusb-dev pcsc-lite-dev" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + ./configure --prefix=/usr \ + --with-drivers=all \ + $CONFIGURE_ARGS && + make && + make DESTDIR=$DESTDIR install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib + cp -a $install/usr/bin $fs/usr + cp -a $install/usr/lib/*.so* $fs/usr/lib +}