Magellan Linux

Contents of /smage/trunk/extras/pcsc-lite/pcsc-lite-1.8.13-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7031 - (show annotations) (download)
Thu Aug 20 12:56:53 2015 UTC (8 years, 8 months ago) by niro
File size: 1345 byte(s)
auto added: ver bump to 1.8.13-r1
1 # $Id$
2
3 PNAME="pcsc-lite"
4 PVER="1.8.13"
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-220"
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/sbin etc usr/lib/systemd"
19 sminclude mbuild mtools systemd alx-split
20
21 ALIOTH_ID="4126"
22
23 SRC_URI=(
24 https://alioth.debian.org/frs/download.php/file/${ALIOTH_ID}/${SRCFILE}
25 mirror://${PNAME}/${SRCFILE}
26 )
27
28 UP2DATE="updatecmd 'https://alioth.debian.org/frs/?group_id=30105' | grep '${PNAME}-\(.*\).*' | firsttarball"
29
30 src_compile()
31 {
32 local myconf
33
34 cd ${SRCDIR}
35
36 mconfigure \
37 --docdir=/usr/share/doc/${PNAME}-${PVER} \
38 --enable-usbdropdir=/usr/$(mlibdir)/readers/usb \
39 --with-systemdsystemunitdir=/usr/lib/systemd/system \
40 --enable-ipcdir=/run/pcscd \
41 --enable-libudev \
42 ${myconf} \
43 || die
44
45 mmake || die
46 }
47
48 alx_generic_src_install()
49 {
50 cd ${SRCDIR}
51 mmake DESTDIR=${BINDIR} install || die
52
53 # needed for usb support
54 mkeepdir /usr/$(mlibdir)/readers/usb || die
55
56 minstalldocs AUTHORS DRIVERS HELP README SECURITY ChangeLog
57 }
58
59 postinstall()
60 {
61 mstartunit pcscd.socket
62 mstartunit pcscd.service
63 }
64
65 postremove()
66 {
67 mstopunit pcscd.service
68 mstopunit pcscd.socket
69 }