Magellan Linux

Contents of /branches/R11-unstable/extras/pcsc-lite/pcsc-lite-1.8.14-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 32530 - (show annotations) (download)
Mon Apr 29 13:05:08 2019 UTC (5 years ago) by niro
File size: 1209 byte(s)
-release branches/R11-unstable
1 # $Id$
2
3 PNAME="pcsc-lite"
4 PVER="1.8.14"
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/libudev-227"
13 SDEPEND=">= dev-util/pkgconfig-0.25"
14
15 SRCFILE="${PNAME}-${PVER}.tar.bz2"
16 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
17
18 sminclude mbuild mtools systemd
19
20 ALIOTH_ID="4138"
21
22 SRC_URI=(
23 https://alioth.debian.org/frs/download.php/file/${ALIOTH_ID}/${SRCFILE}
24 mirror://${PNAME}/${SRCFILE}
25 )
26
27 UP2DATE="updatecmd 'https://alioth.debian.org/frs/?group_id=30105' | grep '${PNAME}-\(.*\).*' | highesttarball"
28
29 src_compile()
30 {
31 cd ${SRCDIR}
32
33 # needed by the systemd patch:
34 local myconf
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 }