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

Up adwaita-icon-theme.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Feb 04 15:52:11 2017 +0200 (2017-02-04)
parents 51a1ebbda768
children 4396aed7eb01
line source
1 # SliTaz package receipt.
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/"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WGET_URL="https://alioth.debian.org/frs/download.php/3741/$TARBALL"
13 SUGGESTED="ccid"
14 DEPENDS="udev"
15 BUILD_DEPENDS="wget udev-dev perl libtool"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 ./configure \
22 --prefix=/usr \
23 --enable-libudev \
24 --enable-ipcdir=/run/pcscd \
25 --enable-usbdropdir=/usr/lib/pcsc/drivers \
26 $CONFIGURE_ARGS &&
27 make && make DESTDIR=$DESTDIR install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/lib/pcsc/drivers $fs/etc
34 cp -a $install/usr/lib/*.so* $fs/usr/lib
35 cp -a $install/usr/sbin $fs/usr
36 cp -a $install/usr/bin $fs/usr
37 cp -a $stuff/init.d $fs/etc
38 }
40 # Daemon options in: daemons.conf
41 post_install()
42 {
43 if ! grep -q 'PCSCD_OPTIONS' "$1/etc/daemons.conf"; then
44 echo '# PC/SC smart card daemon options.' >> "$1/etc/daemons.conf"
45 echo 'PCSCD_OPTIONS=""' >> "$1/etc/daemons.conf"
46 echo '' >> "$1/etc/daemons.conf"
47 fi
48 }