wok-next view ccid/receipt @ rev 20826
palemoon: #5 sys/int_types.h
author | Erkan Yilmaz <erkan@slitaz.org> |
---|---|
date | Thu Jun 14 09:56:17 2018 +0000 (2018-06-14) |
parents | 757d032c55c7 |
children | a3c581bf52b8 |
line source
1 # SliTaz package receipt v2.
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 LICENSE="LGPL2.1"
9 WEB_SITE="http://pcsclite.alioth.debian.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="https://alioth.debian.org/frs/download.php/3768/$TARBALL"
14 BUILD_DEPENDS="wget 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=$DESTDIR install &&
24 make DESTDIR=$DESTDIR -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 }
40 genpkg_rules() {
41 copy @std
42 DEPENDS="libusb pcsc-lite"
43 }
45 # addgroup pcscd if needed
46 post_install() {
47 if ! grep -q pcscd "$1/etc/group"; then
48 chroot "$1/" addgroup pcscd
49 fi
50 }