Magellan Linux

Annotation of /smage/trunk/extras/pcsc-lite/pcsc-lite-1.8.8-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4679 - (hide annotations) (download)
Tue Mar 26 09:30:13 2013 UTC (11 years, 2 months ago) by niro
File size: 1355 byte(s)
auto added: ver bump to 1.8.8-r1
1 niro 4679 # $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-197"
13     SDEPEND=">= dev-util/pkgconfig-0.25"
14    
15     SRCFILE="${PNAME}-${PVER}.tar.bz2"
16     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
17    
18     ALX_PKG_KEEP="usr/$(mlibdir)/*.so usr/$(mlibdir)/*.so.* usr/sbin etc usr/lib/systemd"
19     sminclude mbuild mtools alx-split
20    
21     # rc cvs revision
22     RC_REV=1.2
23    
24     SRC_URI=(
25     https://alioth.debian.org/frs/download.php/3862/${SRCFILE}
26     mirror://${PNAME}/${SRCFILE}
27     )
28    
29     UP2DATE="updatecmd 'https://alioth.debian.org/frs/?group_id=30105' | grep '${PNAME}-\(.*\).*' | firsttarball"
30    
31     src_compile()
32     {
33     local myconf
34    
35     cd ${SRCDIR}
36    
37     mconfigure \
38     --docdir=/usr/share/doc/${PNAME}-${PVER} \
39     --enable-usbdropdir=/usr/$(mlibdir)/readers/usb \
40     --with-systemdsystemunitdir=/usr/lib/systemd/system \
41     --enable-ipcdir=/run/pcscd \
42     --enable-libudev \
43     ${myconf} \
44     || die
45    
46     mmake || die
47     }
48    
49     alx_generic_src_install()
50     {
51     cd ${SRCDIR}
52     mmake DESTDIR=${BINDIR} install || die
53    
54     # needed for usb support
55     mkeepdir /usr/$(mlibdir)/readers/usb || die
56    
57     minstalldocs AUTHORS DRIVERS HELP README SECURITY ChangeLog
58     }
59    
60     postinstall()
61     {
62     mstartunit pcscd.socket
63     mstartunit pcscd.service
64     }
65    
66     postremove()
67     {
68     mstopunit pcscd.service
69     mstopunit pcscd.socket
70     }