wok-next annotate pcsc-lite/receipt @ rev 20604

More fix libtool.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Apr 19 13:15:41 2018 +0300 (2018-04-19)
parents 9e5dca6702bf
children 5c189fc65a98
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"
pascal@13312 9 WEB_SITE="http://pcsclite.alioth.debian.org/"
al@20464 10
pascal@13312 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@13312 12 WGET_URL="https://alioth.debian.org/frs/download.php/3741/$TARBALL"
pascal@13312 13
al@20464 14 BUILD_DEPENDS="udev-dev perl libtool"
al@20464 15 SPLIT="pcsc-lite-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@20557 25 make DESTDIR=$DESTDIR install || return 1
al@20557 26
al@20557 27 install -Dm755 $stuff/init.d/pcscd $install/etc/init.d/pcscd
pascal@13312 28 }
pascal@13312 29
al@20464 30 genpkg_rules() {
al@20464 31 case $PACKAGE in
al@20464 32 pcsc-lite)
al@20557 33 copy @std
al@20464 34 DEPENDS="udev"
al@20464 35 SUGGESTED="ccid"
al@20464 36 ;;
al@20464 37 *-dev)
al@20557 38 copy @dev
al@20464 39 ;;
al@20464 40 esac
pascal@13312 41 }
pankso@13657 42
pankso@13657 43 # Daemon options in: daemons.conf
al@20464 44 post_install_pcsc_lite() {
pascal@18730 45 if ! grep -q 'PCSCD_OPTIONS' "$1/etc/daemons.conf"; then
al@20464 46 cat >> "$1/etc/daemons.conf" <<EOT
al@20464 47 # PC/SC smart card daemon options.
al@20464 48 PCSCD_OPTIONS=""
al@20464 49
al@20464 50 EOT
pankso@13657 51 fi
pankso@13657 52 }