Magellan Linux

Contents of /smage/trunk/extras/pcsc-lite/pcsc-lite-1.8.15-r3.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8470 - (show annotations) (download)
Tue Feb 2 12:25:24 2016 UTC (8 years, 3 months ago) by niro
File size: 1555 byte(s)
-pcsc-lite >=1.8.14 breaks ehealth plugin
1 # $Id$
2
3 PNAME="pcsc-lite"
4 PVER="1.8.15"
5 PBUILD="r3"
6
7 STATE="disabled" # libusb-version, but pcsc-lite >=1.8.14 break ehealth plugin
8 PCAT="sys-apps"
9
10 DESCRIPTION="Middleware to access a smart card using SCard API (PC/SC)."
11 HOMEPAGE="http://pcsclite.alioth.debian.org/"
12
13 #DEPEND=">= sys-fs/udev-228"
14 DEPEND=">= dev-libs/libusb-compat-0.1.3"
15 SDEPEND=">= dev-util/pkgconfig-0.25
16 >= dev-libs/libusb-compat-dev-0.1.3"
17
18 SRCFILE="${PNAME}-${PVER}.tar.bz2"
19 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
20
21 ALX_PKG_KEEP="usr/$(mlibdir)/*.so.* usr/sbin etc usr/lib/systemd"
22 sminclude mbuild mtools systemd alx-split
23
24 ALIOTH_ID="4157"
25
26 SRC_URI=(
27 https://alioth.debian.org/frs/download.php/file/${ALIOTH_ID}/${SRCFILE}
28 mirror://${PNAME}/${SRCFILE}
29 )
30
31 UP2DATE="updatecmd 'https://alioth.debian.org/frs/?group_id=30105' | grep '${PNAME}-\(.*\).*' | firsttarball"
32
33 src_compile()
34 {
35 cd ${SRCDIR}
36
37 # needed by the systemd patch:
38 local myconf
39 myconf="--disable-autostart"
40
41 mconfigure \
42 --docdir=/usr/share/doc/${PNAME}-${PVER} \
43 --enable-usbdropdir=/usr/$(mlibdir)/readers/usb \
44 --with-systemdsystemunitdir=/usr/lib/systemd/system \
45 --disable-libudev \
46 --enable-libusb \
47 ${myconf} \
48 || die
49
50 mmake || die
51 }
52
53 alx_generic_src_install()
54 {
55 cd ${SRCDIR}
56 mmake DESTDIR=${BINDIR} install || die
57
58 # needed for usb support
59 mkeepdir /usr/$(mlibdir)/readers/usb || die
60
61 minstalldocs AUTHORS DRIVERS HELP README SECURITY ChangeLog
62 }
63
64 postinstall()
65 {
66 mstartunit pcscd.socket
67 mstartunit pcscd.service
68 }
69
70 postremove()
71 {
72 mstopunit pcscd.service
73 mstopunit pcscd.socket
74 }