Magellan Linux

Contents of /branches/magellan-next/extras/pcsc-lite/pcsc-lite-1.7.4-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9289 - (show annotations) (download)
Thu Nov 24 21:11:10 2011 UTC (12 years, 6 months ago) by niro
File size: 1680 byte(s)
auto added: ver bump to 1.7.4-r2
1 # $Id$
2
3 PNAME="pcsc-lite"
4 PVER="1.7.4"
5 PBUILD="r2"
6
7 PCATEGORIE="sys-apps"
8
9 DESCRIPTION="Middleware to access a smart card using SCard API (PC/SC)."
10 HOMEPAGE="http://pcsclite.alioth.debian.org/"
11
12 DEPEND=">= sys-fs/udev-171"
13 SDEPEND=">= dev-util/pkgconfig-0.25"
14
15 SRCFILE="${PNAME}-${PVER}.tar.bz2"
16 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
17
18 sminclude mbuild mtools
19
20 SRC_URI=(
21 https://alioth.debian.org/frs/download.php/3598/${SRCFILE}
22 mirror://${PNAME}/${SRCFILE}
23 mirror://${PNAME}/${PNAME}-${PVER}-systemd-socket-activation.patch
24 mirror://${PNAME}/${PNAME}-${PVER}-systemd-disable-autostart.patch
25 mirror://${PNAME}/${PNAME}-${PVER}-systemd-install-service-files.patch
26 )
27
28 UP2DATE="updatecmd 'https://alioth.debian.org/frs/?group_id=30105' | grep '${PNAME}-\(.*\).*' | firsttarball"
29
30 src_prepare()
31 {
32 munpack ${SRCFILE} || die
33 cd ${SRCDIR}
34
35 # add systemd support
36 mpatch ${PNAME}-${PVER}-systemd-socket-activation.patch || die
37 mpatch ${PNAME}-${PVER}-systemd-disable-autostart.patch || die
38 mpatch ${PNAME}-${PVER}-systemd-install-service-files.patch || die
39
40 mautoreconf || die
41 }
42
43 src_compile()
44 {
45 local myconf
46
47 cd ${SRCDIR}
48
49 # needed by the systemd patch:
50 myconf="--disable-autostart"
51
52 mconfigure \
53 --docdir=/usr/share/doc/${PNAME}-${PVER} \
54 --enable-usbdropdir=/usr/$(mlibdir)/readers/usb \
55 --enable-libudev \
56 --disable-libusb \
57 ${myconf} \
58 || die
59
60 mmake || die
61 }
62
63 src_install()
64 {
65 cd ${SRCDIR}
66 mmake DESTDIR=${BINDIR} install || die
67 minstalldocs AUTHORS DRIVERS HELP README SECURITY ChangeLog
68 }
69
70 postinstall()
71 {
72 mstartunit pcscd.socket pcscd
73 mstartunit pcscd.service pcscd
74 }
75
76 postremove()
77 {
78 mstopunit pcscd.socket pcscd
79 mstopunit pcscd.service pcscd
80 }