wok view 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
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 --enable-twinserial \
23 $CONFIGURE_ARGS &&
24 make && make DESTDIR=$DESTDIR install &&
25 make DESTDIR=$DESTDIR -C src install_ccidtwin
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/etc/udev/rules.d/
32 cp -a $install/* $fs/
33 cp $src/src/92_pcscd_ccid.rules $fs/etc/udev/rules.d/
34 mv $fs/usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist \
35 $fs/etc/libccid_Info.plist
36 ln -s /etc/libccid_Info.plist \
37 $fs/usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist
38 }
40 post_install()
41 {
42 # addgroup pcscd if needed
43 if ! grep -q pcscd $1/etc/group; then
44 echo -n "Adding group pcscd..."
45 chroot $1/ addgroup pcscd
46 status
47 fi
48 }