wok view ccid/receipt @ rev 25546

memtest: update menu label
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Mar 19 18:51:26 2023 +0000 (20 months ago)
parents 45f846c0c126
children
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 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WEB_SITE}files 2>/dev/null | \
21 sed '/ccid-/!d;s|.*ccid-||;s|.tar.*||' | sort -Vr | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 ./configure \
28 CC=gcc-83 \
29 CXX=g++-83 \
30 LDFLAGS="$LDFLAGS -lrt" \
31 --prefix=/usr \
32 --sysconfdir=/etc \
33 --enable-serialconfdir=/etc/reader.conf.d \
34 --enable-usbdropdir=/usr/lib/pcsc/drivers \
35 --enable-twinserial \
36 $CONFIGURE_ARGS &&
37 make &&
38 make install DESTDIR=$DESTDIR &&
39 make install_ccidtwin DESTDIR=$DESTDIR -C src
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/etc/udev/rules.d
46 mkdir -p $fs/usr/bin
47 mkdir -p $fs/usr/sbin
49 cp -a $install/* $fs/
50 cp $src/src/92_pcscd_ccid.rules $fs/etc/udev/rules.d/
51 mv $fs/usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist \
52 $fs/etc/libccid_Info.plist
53 ln -s /etc/libccid_Info.plist \
54 $fs/usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist
55 cp $src/contrib/RSA_SecurID/RSA_SecurID_getpasswd \
56 $fs/usr/bin
57 cp $src/contrib/Kobil_mIDentity_switch/Kobil_mIDentity_switch \
58 $fs/usr/sbin
59 }
61 post_install()
62 {
63 # addgroup pcscd if needed
64 if ! grep -q pcscd "$1/etc/group"
65 then
66 echo
67 echo -n "Adding group pcscd..."
68 chroot "$1/" addgroup pcscd
69 status
70 fi
71 }