Contents of /trunk/extras/pcsc-lite/pcsc-lite-1.8.4-r1.smage2
Parent Directory | Revision Log
Revision 12824 -
(show annotations)
(download)
Tue Jul 3 22:40:10 2012 UTC (12 years, 2 months ago) by niro
File size: 1165 byte(s)
Tue Jul 3 22:40:10 2012 UTC (12 years, 2 months ago) by niro
File size: 1165 byte(s)
-rebuild against udev-185
1 | # $Id$ |
2 | |
3 | PNAME="pcsc-lite" |
4 | PVER="1.8.4" |
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-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 |
19 | |
20 | SRC_URI=( |
21 | https://alioth.debian.org/frs/download.php/3734/${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 | } |