wok-6.x view ccid/receipt @ rev 23896

lftp: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 26 14:28:44 2020 +0000 (2020-07-26)
parents f9690e227edd
children 45f846c0c126
line source
1 # SliTaz package receipt.
3 PACKAGE="ccid"
4 VERSION="1.4.31"
5 CATEGORY="base-system"
6 SHORT_DESC="Chip and Smart Card Interface Devices driver."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="LGPL2.1"
9 WEB_SITE="https://ccid.apdu.fr/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="${WEB_SITE}files/$TARBALL"
14 DEPENDS="libusb pcsc-lite"
15 BUILD_DEPENDS="libusb-dev pcsc-lite-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 ./configure \
21 --prefix=/usr \
22 --sysconfdir=/etc \
23 --enable-serialconfdir=/etc/reader.conf.d \
24 --enable-usbdropdir=/usr/lib/pcsc/drivers \
25 --enable-twinserial \
26 $CONFIGURE_ARGS &&
27 make &&
28 make DESTDIR=$DESTDIR install &&
29 make DESTDIR=$DESTDIR -C src install_ccidtwin
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/etc/udev/rules.d
36 mkdir -p $fs/usr/bin $fs/usr/sbin
38 cp -a $install/* $fs/
39 cp $src/src/92_pcscd_ccid.rules $fs/etc/udev/rules.d/
40 mv $fs/usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist \
41 $fs/etc/libccid_Info.plist
42 ln -s /etc/libccid_Info.plist \
43 $fs/usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist
44 cp $src/contrib/RSA_SecurID/RSA_SecurID_getpasswd \
45 $fs/usr/bin
46 cp $src/contrib/Kobil_mIDentity_switch/Kobil_mIDentity_switch \
47 $fs/usr/sbin
48 }
50 post_install()
51 {
52 # addgroup pcscd if needed
53 if ! grep -q pcscd "$1/etc/group"
54 then
55 echo
56 echo -n "Adding group pcscd..."
57 chroot "$1/" addgroup pcscd
58 status
59 fi
60 }