Magellan Linux

Contents of /trunk/extras/pcsc-lite/pcsc-lite-1.8.4-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 12825 - (show annotations) (download)
Tue Jul 3 22:42:25 2012 UTC (11 years, 11 months ago) by niro
File size: 1182 byte(s)
-marked unstable
1 # $Id$
2
3 PNAME="pcsc-lite"
4 PVER="1.8.4"
5 PBUILD="r1"
6
7 PCAT="sys-apps"
8 STATE="unstable"
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-185"
14 SDEPEND=">= dev-util/pkgconfig-0.25"
15
16 SRCFILE="${PNAME}-${PVER}.tar.bz2"
17 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
18
19 sminclude mbuild mtools
20
21 SRC_URI=(
22 https://alioth.debian.org/frs/download.php/3734/${SRCFILE}
23 mirror://${PNAME}/${SRCFILE}
24 )
25
26 UP2DATE="updatecmd 'https://alioth.debian.org/frs/?group_id=30105' | grep '${PNAME}-\(.*\).*' | firsttarball"
27
28 src_compile()
29 {
30 local myconf
31
32 cd ${SRCDIR}
33
34 # needed by the systemd patch:
35 myconf="--disable-autostart"
36
37 mconfigure \
38 --docdir=/usr/share/doc/${PNAME}-${PVER} \
39 --enable-usbdropdir=/usr/$(mlibdir)/readers/usb \
40 --enable-libudev \
41 --disable-libusb \
42 ${myconf} \
43 || die
44
45 mmake || die
46 }
47
48 src_install()
49 {
50 cd ${SRCDIR}
51 mmake DESTDIR=${BINDIR} install || die
52 minstalldocs AUTHORS DRIVERS HELP README SECURITY ChangeLog
53 }
54
55 postinstall()
56 {
57 mstartunit pcscd.socket pcscd
58 mstartunit pcscd.service pcscd
59 }
60
61 postremove()
62 {
63 mstopunit pcscd.socket pcscd
64 mstopunit pcscd.service pcscd
65 }