wok-next view libnfc/receipt @ rev 20406

Continue: json-c, json-glib, keyutils, libarchive, libassuan, libatasmart, libatomic_ops, libblockdev, libbytesize, libcroco, libdaemon, libesmtp, libffi, libgcrypt, libgpg-error, libgsf, libgudev, libgusb
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Dec 08 02:55:48 2017 +0200 (2017-12-08)
parents d0c817e1d52b
children d43bf7aae921
line source
1 # SliTaz package receipt v2.
3 PACKAGE="libnfc"
4 VERSION="1.7.0"
5 CATEGORY="development"
6 SHORT_DESC="Near Field Communication (NFC) library."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="LGPL3"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://nfc-tools.org/index.php?title=Libnfc"
11 WGET_URL="http://libnfc.googlecode.com/files/$TARBALL"
13 BUILD_DEPENDS="pkg-config libusb-dev libusb-compat-dev pcsc-lite-dev udev-dev"
14 SPLIT="libnfc-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 ./configure --prefix=/usr \
20 --with-drivers=all \
21 $CONFIGURE_ARGS &&
22 make &&
23 make DESTDIR=$DESTDIR install
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 case $PACKAGE in
30 libnfc)
31 DEPENDS="libusb pcsc-lite"
32 mkdir -p $fs/usr/lib
33 cp -a $install/usr/bin $fs/usr
34 cp -a $install/usr/lib/*.so* $fs/usr/lib
35 ;;
36 libnfc-dev)
37 CAT="development|Near Field Communication (NFC) library, development files."
38 DEPENDS="libnfc pcsc-lite-dev libusb-dev libusb-compat-dev pkg-config"
39 mkdir -p $fs/usr/lib
40 cp -a $install/usr/include $fs/usr
41 cp -a $install/usr/lib/*a $fs/usr/lib
42 cp -a $install/usr/lib/pkgconfig $fs/usr/lib
43 ;;
44 esac
45 }