wok-next annotate ccid/receipt @ rev 21590
updated dialog (1.3-20181107 -> 1.3.20200327)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jun 24 07:00:06 2020 +0100 (2020-06-24) |
parents | 8459b1de4897 |
children |
rev | line source |
---|---|
al@20534 | 1 # SliTaz package receipt v2. |
pascal@13660 | 2 |
pascal@13660 | 3 PACKAGE="ccid" |
Hans-G?nter@21543 | 4 VERSION="1.4.32" |
pascal@13660 | 5 CATEGORY="base-system" |
Hans-G?nter@21543 | 6 SHORT_DESC="Chip and 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 |
Hans-G?nter@21543 | 14 BUILD_DEPENDS="libusb-dev pcsc-lite-dev perl" |
pascal@13660 | 15 |
Hans-G?nter@21543 | 16 compile_rules() |
Hans-G?nter@21543 | 17 { |
Hans-G?nter@21543 | 18 ./configure \ |
Hans-G?nter@21543 | 19 --enable-usbdropdir=/usr/lib/pcsc/drivers \ |
Hans-G?nter@21543 | 20 --enable-twinserial \ |
pascal@13660 | 21 $CONFIGURE_ARGS && |
al@20569 | 22 fix libtool && |
al@20534 | 23 make && |
al@21020 | 24 make DESTDIR=$install install && |
al@21020 | 25 make DESTDIR=$install -C src install_ccidtwin || return 1 |
al@20534 | 26 |
al@20534 | 27 mkdir -p \ |
al@20534 | 28 $install/etc/udev/rules.d/ \ |
al@20534 | 29 $install/usr/bin/ \ |
al@20534 | 30 $install/usr/sbin/ |
Hans-G?nter@21543 | 31 cp $src/src/92_pcscd_ccid.rules \ |
Hans-G?nter@21543 | 32 $install/etc/udev/rules.d/ |
Hans-G?nter@21543 | 33 cp $src/contrib/RSA_SecurID/RSA_SecurID_getpasswd \ |
Hans-G?nter@21543 | 34 $install/usr/bin/ |
Hans-G?nter@21543 | 35 cp $src/contrib/Kobil_mIDentity_switch/Kobil_mIDentity_switch \ |
Hans-G?nter@21543 | 36 $install/usr/sbin/ |
al@20534 | 37 |
al@20534 | 38 mv $install/usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist \ |
Hans-G?nter@21543 | 39 $install/etc/libccid_Info.plist |
al@20534 | 40 ln -s /etc/libccid_Info.plist \ |
Hans-G?nter@21543 | 41 $install/usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist |
al@20960 | 42 fix symlinks |
al@20960 | 43 |
Hans-G?nter@21543 | 44 cook_pick_docs README.md |
pascal@13660 | 45 } |
pascal@13660 | 46 |
Hans-G?nter@21543 | 47 genpkg_rules() |
Hans-G?nter@21543 | 48 { |
al@20534 | 49 copy @std |
al@20534 | 50 DEPENDS="libusb pcsc-lite" |
pascal@13660 | 51 } |
pascal@13665 | 52 |
al@20534 | 53 # addgroup pcscd if needed |
Hans-G?nter@21543 | 54 post_install() |
Hans-G?nter@21543 | 55 { |
Hans-G?nter@21543 | 56 if ! grep -q pcscd "$1/etc/group" |
Hans-G?nter@21543 | 57 then |
pascal@18730 | 58 chroot "$1/" addgroup pcscd |
pascal@13665 | 59 fi |
pascal@13665 | 60 } |