Magellan Linux

Contents of /smage/trunk/extras/pcsc-lite/pcsc-lite-2.1.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 18202 - (show annotations) (download)
Fri Apr 12 09:33:07 2024 UTC (7 weeks ago) by niro
File size: 1488 byte(s)
-ver bump to 2.1.0-r1
1 # $Id$
2
3 PNAME="pcsc-lite"
4 PVER="2.1.0"
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-253
13 >= sys-libs/libsystemd-253"
14 ALX_LIB32_DEPEND=">= sys-fs/libudev-lib32-253
15 >= sys-libs/libsystemd-lib32-253"
16
17 SDEPEND=">= virtual/pkgconfig
18 >= sys-apps/systemd-dev-253"
19
20 SRCFILE="${PNAME}-${PVER}.tar.bz2"
21 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
22
23 ALX_PKG_KEEP="usr/$(MABI=m64 mlibdir)/*.so.* usr/sbin etc usr/lib/systemd"
24 ALX_LIB32_PKG_KEEP="usr/$(MABI=m32 mlibdir)/*.so.*"
25 sminclude multilib mbuild mtools systemd lib32-split alx-split
26
27 SRC_URI=(
28 https://pcsclite.apdu.fr/files/${SRCFILE}
29 mirror://${PNAME}/${SRCFILE}
30 )
31
32 UP2DATE="updatecmd https://pcsclite.apdu.fr/files/ | highesttarball"
33
34 src_compile()
35 {
36 cd ${SRCDIR}
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 --enable-libsystemd \
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_pcsc-lite()
62 {
63 mstartunit pcscd.socket
64 mstartunit pcscd.service
65 }
66
67 postremove_pcsc-lite()
68 {
69 mstopunit pcscd.service
70 mstopunit pcscd.socket
71 }