wok-next annotate pcsc-lite/receipt @ rev 14644
Xorg. xorg-libXcursor, xorg-libXfont: reformat receipt; xorg-libXdamage: up 1.1.4; xorg-libfontenc: up 1.1.2.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Jun 03 00:28:35 2013 +0000 (2013-06-03) |
parents | e509bd507650 |
children | 51a1ebbda768 |
rev | line source |
---|---|
pascal@13312 | 1 # SliTaz package receipt. |
pascal@13312 | 2 |
pascal@13312 | 3 PACKAGE="pcsc-lite" |
pankso@13657 | 4 VERSION="1.8.6" |
pascal@13312 | 5 CATEGORY="base-system" |
pascal@13312 | 6 SHORT_DESC="SCard interface for communicating to smart cards and readers." |
pascal@13312 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@13312 | 8 WEB_SITE="http://pcsclite.alioth.debian.org/" |
pascal@13312 | 9 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@13312 | 10 WGET_URL="https://alioth.debian.org/frs/download.php/3741/$TARBALL" |
pascal@13312 | 11 |
pascal@13669 | 12 SUGGESTED="ccid" |
pascal@13669 | 13 DEPENDS="udev" |
pascal@13312 | 14 BUILD_DEPENDS="wget udev-dev perl libtool" |
pascal@13312 | 15 |
pascal@13312 | 16 # Rules to configure and make the package. |
pascal@13312 | 17 compile_rules() |
pascal@13312 | 18 { |
pascal@13312 | 19 cd $src |
pankso@13657 | 20 ./configure \ |
pankso@13657 | 21 --prefix=/usr \ |
pankso@13657 | 22 --enable-libudev \ |
pankso@13657 | 23 --enable-ipcdir=/run/pcscd \ |
pankso@13657 | 24 --enable-usbdropdir=/usr/lib/pcsc/drivers \ |
pascal@13312 | 25 $CONFIGURE_ARGS && |
pascal@13312 | 26 make && make DESTDIR=$DESTDIR install |
pascal@13312 | 27 } |
pascal@13312 | 28 |
pascal@13312 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@13312 | 30 genpkg_rules() |
pascal@13312 | 31 { |
pankso@13657 | 32 mkdir -p $fs/usr/lib/pcsc/drivers $fs/etc |
pascal@13312 | 33 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pascal@13312 | 34 cp -a $install/usr/sbin $fs/usr |
pascal@13312 | 35 cp -a $install/usr/bin $fs/usr |
pankso@13657 | 36 cp -a $stuff/init.d $fs/etc |
pascal@13312 | 37 } |
pankso@13657 | 38 |
pankso@13657 | 39 # Daemon options in: daemons.conf |
pankso@13657 | 40 post_install() |
pankso@13657 | 41 { |
pankso@13657 | 42 local root |
pankso@13657 | 43 root=$1 |
pankso@13657 | 44 if ! grep -q 'PCSCD_OPTIONS' $root/etc/daemons.conf; then |
pankso@13657 | 45 echo '# PC/SC smart card daemon options.' >> $root/etc/daemons.conf |
pankso@13657 | 46 echo 'PCSCD_OPTIONS=""' >> $root/etc/daemons.conf |
pankso@13657 | 47 echo '' >> $root/etc/daemons.conf |
pankso@13657 | 48 fi |
pankso@13657 | 49 } |