wok view pcsc-lite/receipt @ rev 25393
updated util-linux packages (2.35.1 -> 2.38)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Aug 01 16:38:43 2022 +0100 (2022-08-01) |
parents | 97585ed37bf0 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="pcsc-lite"
4 VERSION="1.8.26"
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="${WEB_SITE}files/$TARBALL"
14 SUGGESTED="ccid"
15 DEPENDS="udev"
16 BUILD_DEPENDS="libtool perl udev-dev"
18 current_version()
19 {
20 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
21 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 ./configure \
28 --prefix=/usr \
29 --disable-libsystemd \
30 --enable-libudev \
31 --enable-ipcdir=/run/pcscd \
32 --enable-usbdropdir=/usr/lib/pcsc/drivers \
33 $CONFIGURE_ARGS &&
34 make &&
35 make DESTDIR=$DESTDIR install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr/lib/pcsc/drivers
42 mkdir -p $fs/etc
44 cp -a $install/usr/lib/*.so* $fs/usr/lib
45 cp -a $install/usr/sbin $fs/usr
46 cp -a $install/usr/bin $fs/usr
47 cp -a $stuff/init.d $fs/etc
48 }
50 # Daemon options in: daemons.conf
51 post_install()
52 {
53 if ! grep -q 'PCSCD_OPTIONS' "$1/etc/daemons.conf"
54 then
55 echo '# PC/SC smart card daemon options.' >> "$1/etc/daemons.conf"
56 echo 'PCSCD_OPTIONS=""' >> "$1/etc/daemons.conf"
57 echo '' >> "$1/etc/daemons.conf"
58 fi
59 }