wok-next view pcsc-lite/receipt @ rev 17310

buildroot: update deps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Nov 02 12:25:01 2014 +0100 (2014-11-02)
parents a4016f7bd89c
children 9e01bc6321ea
line source
1 # SliTaz package receipt.
3 PACKAGE="pcsc-lite"
4 VERSION="1.8.6"
5 CATEGORY="base-system"
6 SHORT_DESC="SCard interface for communicating to smart cards and readers."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="http://pcsclite.alioth.debian.org/"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WGET_URL="https://alioth.debian.org/frs/download.php/3741/$TARBALL"
13 SUGGESTED="ccid"
14 DEPENDS="udev"
15 BUILD_DEPENDS="wget udev-dev perl libtool"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 ./configure \
22 --prefix=/usr \
23 --enable-libudev \
24 --enable-ipcdir=/run/pcscd \
25 --enable-usbdropdir=/usr/lib/pcsc/drivers \
26 $CONFIGURE_ARGS &&
27 make && make DESTDIR=$DESTDIR install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/lib/pcsc/drivers $fs/etc
34 cp -a $install/usr/lib/*.so* $fs/usr/lib
35 cp -a $install/usr/sbin $fs/usr
36 cp -a $install/usr/bin $fs/usr
37 cp -a $stuff/init.d $fs/etc
38 }
40 # Daemon options in: daemons.conf
41 post_install()
42 {
43 local root
44 root=$1
45 if ! grep -q 'PCSCD_OPTIONS' $root/etc/daemons.conf; then
46 echo '# PC/SC smart card daemon options.' >> $root/etc/daemons.conf
47 echo 'PCSCD_OPTIONS=""' >> $root/etc/daemons.conf
48 echo '' >> $root/etc/daemons.conf
49 fi
50 }