wok-next view ccid/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents 65f5c0b7dcd4
children 8459b1de4897
line source
1 # SliTaz package receipt v2.
3 PACKAGE="ccid"
4 VERSION="1.4.29"
5 CATEGORY="base-system"
6 SHORT_DESC="Chip/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="https://ccid.apdu.fr/files/$TARBALL"
14 BUILD_DEPENDS="pcsc-lite-dev libusb-dev perl"
16 compile_rules() {
17 ./configure \
18 --enable-usbdropdir=/usr/lib/pcsc/drivers \
19 --enable-twinserial \
20 $CONFIGURE_ARGS &&
21 fix libtool &&
22 make &&
23 make DESTDIR=$install install &&
24 make DESTDIR=$install -C src install_ccidtwin || return 1
26 mkdir -p \
27 $install/etc/udev/rules.d/ \
28 $install/usr/bin/ \
29 $install/usr/sbin/
30 cp $src/src/92_pcscd_ccid.rules $install/etc/udev/rules.d/
31 cp $src/contrib/RSA_SecurID/RSA_SecurID_getpasswd $install/usr/bin/
32 cp $src/contrib/Kobil_mIDentity_switch/Kobil_mIDentity_switch $install/usr/sbin/
34 mv $install/usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist \
35 $install/etc/libccid_Info.plist
36 ln -s /etc/libccid_Info.plist \
37 $install/usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist
38 fix symlinks
40 cook_pick_docs README
41 }
43 genpkg_rules() {
44 copy @std
45 DEPENDS="libusb pcsc-lite"
46 }
48 # addgroup pcscd if needed
49 post_install() {
50 if ! grep -q pcscd "$1/etc/group"; then
51 chroot "$1/" addgroup pcscd
52 fi
53 }