wok view ccid/receipt @ rev 13665

ccid: typo in usbdropdir, add group pcscd
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Nov 24 11:22:59 2012 +0100 (2012-11-24)
parents 628413044d2c
children efab0c6287b9
line source
1 # SliTaz package receipt.
3 PACKAGE="ccid"
4 VERSION="1.4.8"
5 CATEGORY="base-system"
6 SHORT_DESC="Chip/Smart Card Interface Devices driver."
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/3768/$TARBALL"
12 DEPENDS="libusb pcsc-lite"
13 BUILD_DEPENDS="wget pcsc-lite-dev libusb-dev"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 ./configure --prefix=/usr \
20 --sysconfdir=/etc \
21 --enable-usbdropdir=/usr/lib/pcsc/drivers \
22 $CONFIGURE_ARGS &&
23 make && make DESTDIR=$DESTDIR install &&
24 make DESTDIR=$DESTDIR -C src install_ccidtwin
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/etc/udev/rules.d/
31 cp -a $install/* $fs/
32 cp $src/src/92_pcscd_ccid.rules $fs/etc/udev/rules.d/
33 mv $fs/usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist \
34 $fs/etc/libccid_Info.plist
35 ln -s $fs/etc/libccid_Info.plist \
36 /usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist
37 }
39 post_install()
40 {
41 # addgroup pcscd if needed
42 if ! grep -q pcscd $1/etc/group; then
43 echo -n "Adding group pcscd..."
44 chroot $1/ addgroup pcscd
45 status
46 fi
47 }