wok-next annotate pcsc-lite/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 a3c581bf52b8
children d635206a5649
rev   line source
al@20464 1 # SliTaz package receipt v2.
pascal@13312 2
pascal@13312 3 PACKAGE="pcsc-lite"
pankso@13657 4 VERSION="1.8.6"
pascal@13312 5 CATEGORY="base-system"
al@20464 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"
al@20906 9 WEB_SITE="https://pcsclite.apdu.fr/"
al@20464 10
pascal@13312 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
al@20906 12 WGET_URL="https://alioth.debian.org/frs/download.php/3741/$TARBALL" # FIXME
pascal@13312 13
al@20623 14 BUILD_DEPENDS="eudev-dev perl libtool"
al@21020 15 SPLIT="$PACKAGE-dev"
pascal@13312 16
al@20464 17 compile_rules() {
pankso@13657 18 ./configure \
pankso@13657 19 --enable-libudev \
pankso@13657 20 --enable-ipcdir=/run/pcscd \
pankso@13657 21 --enable-usbdropdir=/usr/lib/pcsc/drivers \
pascal@13312 22 $CONFIGURE_ARGS &&
al@20604 23 fix libtool &&
al@20557 24 make &&
al@21020 25 make DESTDIR=$install install || return 1
al@20557 26
al@21020 27 install -Dm755 $stuff/pcscd $install/etc/init.d/pcscd
al@21020 28 install -Dm644 $stuff/pcscd.conf $install/etc/daemons.conf.d/pcscd.conf
pascal@13312 29 }
pascal@13312 30
al@20464 31 genpkg_rules() {
al@20464 32 case $PACKAGE in
al@20464 33 pcsc-lite)
al@20557 34 copy @std
al@20623 35 DEPENDS="eudev"
al@20464 36 SUGGESTED="ccid"
al@20464 37 ;;
al@20464 38 *-dev)
al@20557 39 copy @dev
al@20464 40 ;;
al@20464 41 esac
pascal@13312 42 }
pankso@13657 43
pankso@13657 44 # Daemon options in: daemons.conf
al@21020 45 # TODO: use /etc/daemons.conf.d/
al@20464 46 post_install_pcsc_lite() {
pascal@18730 47 if ! grep -q 'PCSCD_OPTIONS' "$1/etc/daemons.conf"; then
al@20464 48 cat >> "$1/etc/daemons.conf" <<EOT
al@20464 49 # PC/SC smart card daemon options.
al@20464 50 PCSCD_OPTIONS=""
al@20464 51
al@20464 52 EOT
pankso@13657 53 fi
pankso@13657 54 }