Contents of /branches/R11-stable/extras/pcsc-lite/pcsc-lite-1.8.11-r1.smage2
Parent Directory | Revision Log
Revision 21823 -
(show annotations)
(download)
Mon Jul 21 09:55:59 2014 UTC (10 years, 2 months ago) by niro
File size: 1205 byte(s)
Mon Jul 21 09:55:59 2014 UTC (10 years, 2 months ago) by niro
File size: 1205 byte(s)
-release branches/R11-stable
1 | # $Id$ |
2 | |
3 | PNAME="pcsc-lite" |
4 | PVER="1.8.11" |
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-210" |
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="3991" |
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}-\(.*\).*' | firsttarball" |
28 | |
29 | src_compile() |
30 | { |
31 | local myconf |
32 | |
33 | cd ${SRCDIR} |
34 | |
35 | # needed by the systemd patch: |
36 | myconf="--disable-autostart" |
37 | |
38 | mconfigure \ |
39 | --docdir=/usr/share/doc/${PNAME}-${PVER} \ |
40 | --enable-usbdropdir=/usr/$(mlibdir)/readers/usb \ |
41 | --enable-libudev \ |
42 | --disable-libusb \ |
43 | ${myconf} \ |
44 | || die |
45 | |
46 | mmake || die |
47 | } |
48 | |
49 | src_install() |
50 | { |
51 | cd ${SRCDIR} |
52 | mmake DESTDIR=${BINDIR} install || die |
53 | minstalldocs AUTHORS DRIVERS HELP README SECURITY ChangeLog |
54 | } |
55 | |
56 | postinstall() |
57 | { |
58 | mstartunit pcscd.socket pcscd |
59 | mstartunit pcscd.service pcscd |
60 | } |
61 | |
62 | postremove() |
63 | { |
64 | mstopunit pcscd.socket pcscd |
65 | mstopunit pcscd.service pcscd |
66 | } |