wok-next annotate 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 |
rev | line source |
---|---|
al@20534 | 1 # SliTaz package receipt v2. |
pascal@13660 | 2 |
pascal@13660 | 3 PACKAGE="ccid" |
al@20960 | 4 VERSION="1.4.29" |
pascal@13660 | 5 CATEGORY="base-system" |
al@20534 | 6 SHORT_DESC="Chip/Smart Card Interface Devices driver" |
pascal@13660 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@14996 | 8 LICENSE="LGPL2.1" |
al@20906 | 9 WEB_SITE="https://ccid.apdu.fr/" |
al@20534 | 10 |
pascal@13660 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
al@20906 | 12 WGET_URL="https://ccid.apdu.fr/files/$TARBALL" |
pascal@13660 | 13 |
al@20960 | 14 BUILD_DEPENDS="pcsc-lite-dev libusb-dev perl" |
pascal@13660 | 15 |
al@20534 | 16 compile_rules() { |
al@20534 | 17 ./configure \ |
pascal@13665 | 18 --enable-usbdropdir=/usr/lib/pcsc/drivers \ |
pascal@13666 | 19 --enable-twinserial \ |
pascal@13660 | 20 $CONFIGURE_ARGS && |
al@20569 | 21 fix libtool && |
al@20534 | 22 make && |
al@21020 | 23 make DESTDIR=$install install && |
al@21020 | 24 make DESTDIR=$install -C src install_ccidtwin || return 1 |
al@20534 | 25 |
al@20534 | 26 mkdir -p \ |
al@20534 | 27 $install/etc/udev/rules.d/ \ |
al@20534 | 28 $install/usr/bin/ \ |
al@20534 | 29 $install/usr/sbin/ |
al@20534 | 30 cp $src/src/92_pcscd_ccid.rules $install/etc/udev/rules.d/ |
al@20534 | 31 cp $src/contrib/RSA_SecurID/RSA_SecurID_getpasswd $install/usr/bin/ |
al@20534 | 32 cp $src/contrib/Kobil_mIDentity_switch/Kobil_mIDentity_switch $install/usr/sbin/ |
al@20534 | 33 |
al@20534 | 34 mv $install/usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist \ |
al@20534 | 35 $install/etc/libccid_Info.plist |
al@20534 | 36 ln -s /etc/libccid_Info.plist \ |
al@20534 | 37 $install/usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist |
al@20960 | 38 fix symlinks |
al@20960 | 39 |
al@20960 | 40 cook_pick_docs README |
pascal@13660 | 41 } |
pascal@13660 | 42 |
al@20534 | 43 genpkg_rules() { |
al@20534 | 44 copy @std |
al@20534 | 45 DEPENDS="libusb pcsc-lite" |
pascal@13660 | 46 } |
pascal@13665 | 47 |
al@20534 | 48 # addgroup pcscd if needed |
al@20534 | 49 post_install() { |
pascal@18730 | 50 if ! grep -q pcscd "$1/etc/group"; then |
pascal@18730 | 51 chroot "$1/" addgroup pcscd |
pascal@13665 | 52 fi |
pascal@13665 | 53 } |