Contents of /trunk/extras/pcsc-lite/pcsc-lite-1.8.8-r2.smage2
Parent Directory | Revision Log
Revision 19705 -
(show annotations)
(download)
Fri Oct 11 11:31:01 2013 UTC (10 years, 11 months ago) by niro
File size: 1173 byte(s)
Fri Oct 11 11:31:01 2013 UTC (10 years, 11 months ago) by niro
File size: 1173 byte(s)
-rebuild using new systemd.sminc include
1 | # $Id$ |
2 | |
3 | PNAME="pcsc-lite" |
4 | PVER="1.8.8" |
5 | PBUILD="r2" |
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-185" |
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 | SRC_URI=( |
21 | https://alioth.debian.org/frs/download.php/3862/${SRCFILE} |
22 | mirror://${PNAME}/${SRCFILE} |
23 | ) |
24 | |
25 | UP2DATE="updatecmd 'https://alioth.debian.org/frs/?group_id=30105' | grep '${PNAME}-\(.*\).*' | firsttarball" |
26 | |
27 | src_compile() |
28 | { |
29 | local myconf |
30 | |
31 | cd ${SRCDIR} |
32 | |
33 | # needed by the systemd patch: |
34 | myconf="--disable-autostart" |
35 | |
36 | mconfigure \ |
37 | --docdir=/usr/share/doc/${PNAME}-${PVER} \ |
38 | --enable-usbdropdir=/usr/$(mlibdir)/readers/usb \ |
39 | --enable-libudev \ |
40 | --disable-libusb \ |
41 | ${myconf} \ |
42 | || die |
43 | |
44 | mmake || die |
45 | } |
46 | |
47 | src_install() |
48 | { |
49 | cd ${SRCDIR} |
50 | mmake DESTDIR=${BINDIR} install || die |
51 | minstalldocs AUTHORS DRIVERS HELP README SECURITY ChangeLog |
52 | } |
53 | |
54 | postinstall() |
55 | { |
56 | mstartunit pcscd.socket pcscd |
57 | mstartunit pcscd.service pcscd |
58 | } |
59 | |
60 | postremove() |
61 | { |
62 | mstopunit pcscd.socket pcscd |
63 | mstopunit pcscd.service pcscd |
64 | } |