wok annotate ccid/receipt @ rev 14824

Up: xfce4-panel* (4.10.0)
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Wed Jul 17 13:51:16 2013 +0200 (2013-07-17)
parents efab0c6287b9
children 76b72f1ad63c
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@13667 31 mkdir -p $fs/etc/udev/rules.d/ $fs/usr/bin $fs/usr/sbin
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@13667 38 cp $src/contrib/RSA_SecurID/RSA_SecurID_getpasswd $fs/usr/bin
pascal@13667 39 cp $src/contrib/Kobil_mIDentity_switch/Kobil_mIDentity_switch $fs/usr/sbin
pascal@13660 40 }
pascal@13665 41
pascal@13665 42 post_install()
pascal@13665 43 {
pascal@13665 44 # addgroup pcscd if needed
pascal@13665 45 if ! grep -q pcscd $1/etc/group; then
pascal@13665 46 echo -n "Adding group pcscd..."
pascal@13665 47 chroot $1/ addgroup pcscd
pascal@13665 48 status
pascal@13665 49 fi
pascal@13665 50 }