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

Update atkmm, cairo, cmake, db, elfutils, emacs, glib, glib-networking, glibmm, gobject-introspection, libsigc++, meson, openssl, zstd
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Dec 13 00:46:54 2018 +0200 (2018-12-13)
parents a3c581bf52b8
children d635206a5649
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="https://pcsclite.apdu.fr/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="https://alioth.debian.org/frs/download.php/3741/$TARBALL" # FIXME
14 BUILD_DEPENDS="eudev-dev perl libtool"
15 SPLIT="$PACKAGE-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=$install install || return 1
27 install -Dm755 $stuff/pcscd $install/etc/init.d/pcscd
28 install -Dm644 $stuff/pcscd.conf $install/etc/daemons.conf.d/pcscd.conf
29 }
31 genpkg_rules() {
32 case $PACKAGE in
33 pcsc-lite)
34 copy @std
35 DEPENDS="eudev"
36 SUGGESTED="ccid"
37 ;;
38 *-dev)
39 copy @dev
40 ;;
41 esac
42 }
44 # Daemon options in: daemons.conf
45 # TODO: use /etc/daemons.conf.d/
46 post_install_pcsc_lite() {
47 if ! grep -q 'PCSCD_OPTIONS' "$1/etc/daemons.conf"; then
48 cat >> "$1/etc/daemons.conf" <<EOT
49 # PC/SC smart card daemon options.
50 PCSCD_OPTIONS=""
52 EOT
53 fi
54 }