wok-next view ccid/receipt @ rev 14317

elementary-dev: update deps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Apr 07 13:15:40 2013 +0200 (2013-04-07)
parents efab0c6287b9
children 76b72f1ad63c
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/ $fs/usr/bin $fs/usr/sbin
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 cp $src/contrib/RSA_SecurID/RSA_SecurID_getpasswd $fs/usr/bin
39 cp $src/contrib/Kobil_mIDentity_switch/Kobil_mIDentity_switch $fs/usr/sbin
40 }
42 post_install()
43 {
44 # addgroup pcscd if needed
45 if ! grep -q pcscd $1/etc/group; then
46 echo -n "Adding group pcscd..."
47 chroot $1/ addgroup pcscd
48 status
49 fi
50 }