wok view pcsc-lite/receipt @ rev 13661

ccid: fix genpkg_rules
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Nov 21 21:52:14 2012 +0100 (2012-11-21)
parents 46fe3a436982
children a4016f7bd89c
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 WEB_SITE="http://pcsclite.alioth.debian.org/"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WGET_URL="https://alioth.debian.org/frs/download.php/3741/$TARBALL"
12 DEPENDS="udev python"
13 BUILD_DEPENDS="wget udev-dev perl libtool"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 ./configure \
20 --prefix=/usr \
21 --enable-libudev \
22 --enable-ipcdir=/run/pcscd \
23 --enable-usbdropdir=/usr/lib/pcsc/drivers \
24 $CONFIGURE_ARGS &&
25 make && make DESTDIR=$DESTDIR install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr/lib/pcsc/drivers $fs/etc
32 cp -a $install/usr/lib/*.so* $fs/usr/lib
33 cp -a $install/usr/sbin $fs/usr
34 cp -a $install/usr/bin $fs/usr
35 cp -a $stuff/init.d $fs/etc
36 }
38 # Daemon options in: daemons.conf
39 post_install()
40 {
41 local root
42 root=$1
43 if ! grep -q 'PCSCD_OPTIONS' $root/etc/daemons.conf; then
44 echo '# PC/SC smart card daemon options.' >> $root/etc/daemons.conf
45 echo 'PCSCD_OPTIONS=""' >> $root/etc/daemons.conf
46 echo '' >> $root/etc/daemons.conf
47 fi
48 }