wok-current view ccid/receipt @ rev 24399
updated ccid (1.4.31 -> 1.5.0)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Feb 08 14:40:28 2022 +0100 (2022-02-08) |
parents | 40ec0f5146e3 |
children | afae00265386 |
line source
1 # SliTaz package receipt.
3 PACKAGE="ccid"
4 VERSION="1.5.0"
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="gcc83-lib-base libusb pcsc-lite"
15 BUILD_DEPENDS="gcc83 libusb-dev pcsc-lite-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 ./configure \
21 CC=gcc-83 \
22 CXX=g++-83 \
23 LDFLAGS="$LDFLAGS -lrt" \
24 --prefix=/usr \
25 --sysconfdir=/etc \
26 --enable-serialconfdir=/etc/reader.conf.d \
27 --enable-usbdropdir=/usr/lib/pcsc/drivers \
28 --enable-twinserial \
29 $CONFIGURE_ARGS &&
30 make &&
31 make install DESTDIR=$DESTDIR &&
32 make install_ccidtwin DESTDIR=$DESTDIR -C src
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/etc/udev/rules.d
39 mkdir -p $fs/usr/bin
40 mkdir -p $fs/usr/sbin
42 cp -a $install/* $fs/
43 cp $src/src/92_pcscd_ccid.rules $fs/etc/udev/rules.d/
44 mv $fs/usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist \
45 $fs/etc/libccid_Info.plist
46 ln -s /etc/libccid_Info.plist \
47 $fs/usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist
48 cp $src/contrib/RSA_SecurID/RSA_SecurID_getpasswd \
49 $fs/usr/bin
50 cp $src/contrib/Kobil_mIDentity_switch/Kobil_mIDentity_switch \
51 $fs/usr/sbin
52 }
54 post_install()
55 {
56 # addgroup pcscd if needed
57 if ! grep -q pcscd "$1/etc/group"
58 then
59 echo
60 echo -n "Adding group pcscd..."
61 chroot "$1/" addgroup pcscd
62 status
63 fi
64 }