wok-next view pcsc-lite/receipt @ rev 20610

transmission: up 2.93
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Apr 19 20:11:53 2018 +0300 (2018-04-19)
parents 9e5dca6702bf
children 5c189fc65a98
line source
1 # SliTaz package receipt v2.
3 PACKAGE="pcsc-lite"
4 VERSION="1.8.6"
5 CATEGORY="base-system"
6 SHORT_DESC="SCard interface for communicating to smart cards and readers"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="http://pcsclite.alioth.debian.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="https://alioth.debian.org/frs/download.php/3741/$TARBALL"
14 BUILD_DEPENDS="udev-dev perl libtool"
15 SPLIT="pcsc-lite-dev"
17 compile_rules() {
18 ./configure \
19 --enable-libudev \
20 --enable-ipcdir=/run/pcscd \
21 --enable-usbdropdir=/usr/lib/pcsc/drivers \
22 $CONFIGURE_ARGS &&
23 fix libtool &&
24 make &&
25 make DESTDIR=$DESTDIR install || return 1
27 install -Dm755 $stuff/init.d/pcscd $install/etc/init.d/pcscd
28 }
30 genpkg_rules() {
31 case $PACKAGE in
32 pcsc-lite)
33 copy @std
34 DEPENDS="udev"
35 SUGGESTED="ccid"
36 ;;
37 *-dev)
38 copy @dev
39 ;;
40 esac
41 }
43 # Daemon options in: daemons.conf
44 post_install_pcsc_lite() {
45 if ! grep -q 'PCSCD_OPTIONS' "$1/etc/daemons.conf"; then
46 cat >> "$1/etc/daemons.conf" <<EOT
47 # PC/SC smart card daemon options.
48 PCSCD_OPTIONS=""
50 EOT
51 fi
52 }