# $Id$ PNAME="pcsc-lite" PVER="1.8.13" PBUILD="r4" PCAT="sys-apps" DESCRIPTION="Middleware to access a smart card using SCard API (PC/SC)." HOMEPAGE="http://pcsclite.alioth.debian.org/" DEPEND=">= sys-fs/udev-242" SDEPEND=">= dev-util/pkgconfig-0.25" SRCFILE="${PNAME}-${PVER}.tar.bz2" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" ALX_PKG_KEEP="usr/$(mlibdir)/*.so.* usr/sbin etc usr/lib/systemd" sminclude mbuild mtools systemd alx-split ALIOTH_ID="4126" SRC_URI=( https://alioth.debian.org/frs/download.php/file/${ALIOTH_ID}/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) UP2DATE="updatecmd 'https://alioth.debian.org/frs/?group_id=30105' | grep '${PNAME}-\(.*\).*' | firsttarball" src_compile() { cd ${SRCDIR} # needed by the systemd patch: local myconf myconf="--disable-autostart" mconfigure \ --docdir=/usr/share/doc/${PNAME}-${PVER} \ --enable-usbdropdir=/usr/$(mlibdir)/readers/usb \ --with-systemdsystemunitdir=/usr/lib/systemd/system \ --enable-ipcdir=/run/pcscd \ --enable-libudev \ ${myconf} \ || die mmake || die } alx_generic_src_install() { cd ${SRCDIR} mmake DESTDIR=${BINDIR} install || die # needed for usb support mkeepdir /usr/$(mlibdir)/readers/usb || die minstalldocs AUTHORS DRIVERS HELP README SECURITY ChangeLog } postinstall() { mstartunit pcscd.socket mstartunit pcscd.service } postremove() { mstopunit pcscd.service mstopunit pcscd.socket }