Magellan Linux

Annotation of /branches/R11-stable/extras/pcsc-lite/pcsc-lite-1.8.8-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 16151 - (hide annotations) (download)
Fri Jan 25 00:24:39 2013 UTC (11 years, 8 months ago) by niro
File size: 1165 byte(s)
-release branches/R11-stable
1 niro 15919 # $Id$
2    
3     PNAME="pcsc-lite"
4     PVER="1.8.8"
5     PBUILD="r1"
6    
7     PCAT="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-185"
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 niro 15920 https://alioth.debian.org/frs/download.php/3862/${SRCFILE}
22 niro 15919 mirror://${PNAME}/${SRCFILE}
23     )
24    
25     UP2DATE="updatecmd 'https://alioth.debian.org/frs/?group_id=30105' | grep '${PNAME}-\(.*\).*' | firsttarball"
26    
27     src_compile()
28     {
29     local myconf
30    
31     cd ${SRCDIR}
32    
33     # needed by the systemd patch:
34     myconf="--disable-autostart"
35    
36     mconfigure \
37     --docdir=/usr/share/doc/${PNAME}-${PVER} \
38     --enable-usbdropdir=/usr/$(mlibdir)/readers/usb \
39     --enable-libudev \
40     --disable-libusb \
41     ${myconf} \
42     || die
43    
44     mmake || die
45     }
46    
47     src_install()
48     {
49     cd ${SRCDIR}
50     mmake DESTDIR=${BINDIR} install || die
51     minstalldocs AUTHORS DRIVERS HELP README SECURITY ChangeLog
52     }
53    
54     postinstall()
55     {
56     mstartunit pcscd.socket pcscd
57     mstartunit pcscd.service pcscd
58     }
59    
60     postremove()
61     {
62     mstopunit pcscd.socket pcscd
63     mstopunit pcscd.service pcscd
64     }