wok-current annotate ccid/receipt @ rev 13666
ccid: add --enable-twinserial
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Nov 24 11:28:27 2012 +0100 (2012-11-24) |
parents | f3038e7cc448 |
children | 5ef779ca99a2 |
rev | line source |
---|---|
pascal@13660 | 1 # SliTaz package receipt. |
pascal@13660 | 2 |
pascal@13660 | 3 PACKAGE="ccid" |
pascal@13660 | 4 VERSION="1.4.8" |
pascal@13660 | 5 CATEGORY="base-system" |
pascal@13660 | 6 SHORT_DESC="Chip/Smart Card Interface Devices driver." |
pascal@13660 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@13660 | 8 WEB_SITE="http://pcsclite.alioth.debian.org/" |
pascal@13660 | 9 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@13660 | 10 WGET_URL="https://alioth.debian.org/frs/download.php/3768/$TARBALL" |
pascal@13660 | 11 |
pascal@13660 | 12 DEPENDS="libusb pcsc-lite" |
pascal@13660 | 13 BUILD_DEPENDS="wget pcsc-lite-dev libusb-dev" |
pascal@13660 | 14 |
pascal@13660 | 15 # Rules to configure and make the package. |
pascal@13660 | 16 compile_rules() |
pascal@13660 | 17 { |
pascal@13660 | 18 cd $src |
pascal@13660 | 19 ./configure --prefix=/usr \ |
pascal@13662 | 20 --sysconfdir=/etc \ |
pascal@13665 | 21 --enable-usbdropdir=/usr/lib/pcsc/drivers \ |
pascal@13666 | 22 --enable-twinserial \ |
pascal@13660 | 23 $CONFIGURE_ARGS && |
pascal@13665 | 24 make && make DESTDIR=$DESTDIR install && |
pascal@13665 | 25 make DESTDIR=$DESTDIR -C src install_ccidtwin |
pascal@13660 | 26 } |
pascal@13660 | 27 |
pascal@13660 | 28 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@13660 | 29 genpkg_rules() |
pascal@13660 | 30 { |
pascal@13661 | 31 mkdir -p $fs/etc/udev/rules.d/ |
pascal@13660 | 32 cp -a $install/* $fs/ |
pascal@13660 | 33 cp $src/src/92_pcscd_ccid.rules $fs/etc/udev/rules.d/ |
pascal@13665 | 34 mv $fs/usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist \ |
pascal@13665 | 35 $fs/etc/libccid_Info.plist |
pascal@13666 | 36 ln -s /etc/libccid_Info.plist \ |
pascal@13666 | 37 $fs/usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist |
pascal@13660 | 38 } |
pascal@13665 | 39 |
pascal@13665 | 40 post_install() |
pascal@13665 | 41 { |
pascal@13665 | 42 # addgroup pcscd if needed |
pascal@13665 | 43 if ! grep -q pcscd $1/etc/group; then |
pascal@13665 | 44 echo -n "Adding group pcscd..." |
pascal@13665 | 45 chroot $1/ addgroup pcscd |
pascal@13665 | 46 status |
pascal@13665 | 47 fi |
pascal@13665 | 48 } |