Contents of /branches/R11-stable/extras/pcsc-lite/pcsc-lite-1.8.13-r1.smage2
Parent Directory | Revision Log
Revision 24391 -
(show annotations)
(download)
Fri Feb 20 10:17:16 2015 UTC (9 years, 7 months ago) by niro
File size: 1209 byte(s)
Fri Feb 20 10:17:16 2015 UTC (9 years, 7 months ago) by niro
File size: 1209 byte(s)
-release branches/R11-stable
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/libudev-216" |
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="4126" |
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 | } |