Contents of /smage/trunk/extras/pcsc-lite/pcsc-lite-1.8.13-r3.smage2
Parent Directory | Revision Log
Revision 10579 -
(show annotations)
(download)
Thu Aug 24 14:11:44 2017 UTC (7 years, 1 month ago) by niro
File size: 1407 byte(s)
Thu Aug 24 14:11:44 2017 UTC (7 years, 1 month ago) by niro
File size: 1407 byte(s)
auto added: ver bump to 1.8.13-r3
1 | # $Id$ |
2 | |
3 | PNAME="pcsc-lite" |
4 | PVER="1.8.13" |
5 | PBUILD="r3" |
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-228" |
13 | SDEPEND=">= dev-util/pkgconfig-0.25" |
14 | |
15 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
16 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
17 | |
18 | ALX_PKG_KEEP="usr/$(mlibdir)/*.so.* usr/sbin etc usr/lib/systemd" |
19 | sminclude mbuild mtools systemd alx-split |
20 | |
21 | ALIOTH_ID="4126" |
22 | |
23 | SRC_URI=( |
24 | https://alioth.debian.org/frs/download.php/file/${ALIOTH_ID}/${SRCFILE} |
25 | mirror://${PNAME}/${SRCFILE} |
26 | ) |
27 | |
28 | UP2DATE="updatecmd 'https://alioth.debian.org/frs/?group_id=30105' | grep '${PNAME}-\(.*\).*' | firsttarball" |
29 | |
30 | src_compile() |
31 | { |
32 | cd ${SRCDIR} |
33 | |
34 | # needed by the systemd patch: |
35 | local myconf |
36 | myconf="--disable-autostart" |
37 | |
38 | mconfigure \ |
39 | --docdir=/usr/share/doc/${PNAME}-${PVER} \ |
40 | --enable-usbdropdir=/usr/$(mlibdir)/readers/usb \ |
41 | --with-systemdsystemunitdir=/usr/lib/systemd/system \ |
42 | --enable-ipcdir=/run/pcscd \ |
43 | --enable-libudev \ |
44 | ${myconf} \ |
45 | || die |
46 | |
47 | mmake || die |
48 | } |
49 | |
50 | alx_generic_src_install() |
51 | { |
52 | cd ${SRCDIR} |
53 | mmake DESTDIR=${BINDIR} install || die |
54 | |
55 | # needed for usb support |
56 | mkeepdir /usr/$(mlibdir)/readers/usb || die |
57 | |
58 | minstalldocs AUTHORS DRIVERS HELP README SECURITY ChangeLog |
59 | } |
60 | |
61 | postinstall() |
62 | { |
63 | mstartunit pcscd.socket |
64 | mstartunit pcscd.service |
65 | } |
66 | |
67 | postremove() |
68 | { |
69 | mstopunit pcscd.service |
70 | mstopunit pcscd.socket |
71 | } |