wok annotate pcsc-lite/receipt @ rev 24458
updated gnustep-gui and gnustep-gui-dev again (0.27.0 -> 0.29.0)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Feb 16 09:58:13 2022 +0100 (2022-02-16) |
parents | 97585ed37bf0 |
children |
rev | line source |
---|---|
pascal@13312 | 1 # SliTaz package receipt. |
pascal@13312 | 2 |
pascal@13312 | 3 PACKAGE="pcsc-lite" |
Hans-G?nter@23283 | 4 VERSION="1.8.26" |
pascal@13312 | 5 CATEGORY="base-system" |
pascal@13312 | 6 SHORT_DESC="SCard interface for communicating to smart cards and readers." |
pascal@13312 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15375 | 8 LICENSE="BSD" |
pascal@20672 | 9 WEB_SITE="https://pcsclite.apdu.fr/" |
Hans-G?nter@21669 | 10 |
pascal@13312 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
Hans-G?nter@21669 | 12 WGET_URL="${WEB_SITE}files/$TARBALL" |
pascal@13312 | 13 |
pascal@13669 | 14 SUGGESTED="ccid" |
pascal@13669 | 15 DEPENDS="udev" |
Hans-G?nter@23283 | 16 BUILD_DEPENDS="libtool perl udev-dev" |
pascal@13312 | 17 |
pascal@24072 | 18 current_version() |
pascal@24072 | 19 { |
pascal@24072 | 20 wget -O - $(dirname $WGET_URL) 2>/dev/null | \ |
pascal@24072 | 21 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24072 | 22 } |
pascal@24072 | 23 |
pascal@13312 | 24 # Rules to configure and make the package. |
pascal@13312 | 25 compile_rules() |
pascal@13312 | 26 { |
Hans-G?nter@21669 | 27 ./configure \ |
Hans-G?nter@21669 | 28 --prefix=/usr \ |
Hans-G?nter@21669 | 29 --disable-libsystemd \ |
Hans-G?nter@21669 | 30 --enable-libudev \ |
Hans-G?nter@21669 | 31 --enable-ipcdir=/run/pcscd \ |
Hans-G?nter@21669 | 32 --enable-usbdropdir=/usr/lib/pcsc/drivers \ |
pascal@13312 | 33 $CONFIGURE_ARGS && |
Hans-G?nter@21669 | 34 make && |
Hans-G?nter@21669 | 35 make DESTDIR=$DESTDIR install |
pascal@13312 | 36 } |
pascal@13312 | 37 |
pascal@13312 | 38 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@13312 | 39 genpkg_rules() |
pascal@13312 | 40 { |
Hans-G?nter@21669 | 41 mkdir -p $fs/usr/lib/pcsc/drivers |
Hans-G?nter@21669 | 42 mkdir -p $fs/etc |
Hans-G?nter@21669 | 43 |
Hans-G?nter@21669 | 44 cp -a $install/usr/lib/*.so* $fs/usr/lib |
Hans-G?nter@21669 | 45 cp -a $install/usr/sbin $fs/usr |
Hans-G?nter@21669 | 46 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@21669 | 47 cp -a $stuff/init.d $fs/etc |
pascal@13312 | 48 } |
pankso@13657 | 49 |
pankso@13657 | 50 # Daemon options in: daemons.conf |
pankso@13657 | 51 post_install() |
pankso@13657 | 52 { |
Hans-G?nter@23283 | 53 if ! grep -q 'PCSCD_OPTIONS' "$1/etc/daemons.conf" |
Hans-G?nter@23283 | 54 then |
pascal@18730 | 55 echo '# PC/SC smart card daemon options.' >> "$1/etc/daemons.conf" |
pascal@18730 | 56 echo 'PCSCD_OPTIONS=""' >> "$1/etc/daemons.conf" |
pascal@18730 | 57 echo '' >> "$1/etc/daemons.conf" |
pankso@13657 | 58 fi |
pankso@13657 | 59 } |