pkgname=pcsclite _pkgname=pcsc-lite pkgver=1.8.17 _code=39 pkgrel=1 pkgdesc="PC/SC Architecture smartcard middleware library" arch=('x86_64') url="https://alioth.debian.org/projects/pcsclite/" license=('BSD') depends=('udev') options=('!libtool' '!docs') source=("https://alioth.debian.org/frs/download.php/latestfile/${_code}/pcsc-lite-${pkgver}.tar.bz2") sha256sums=('d72b6f8654024f2a1d2de70f8f1d39776bd872870a4f453f436fd93d4312026f') build() { cd "${srcdir}/${_pkgname}-${pkgver}" sed -i -e "s:python:python2:g" src/spy/pcsc-spy ./configure --enable-ipcdir=/run/pcscd \ --enable-libudev \ --enable-usbdropdir=/usr/lib/pcsc/drivers \ --prefix=/usr \ --sysconfdir=/etc \ --with-systemdsystemunitdir=/usr/lib/systemd/system make } package() { cd "${srcdir}/${_pkgname}-${pkgver}" make DESTDIR="${pkgdir}" install install -D "${srcdir}/${_pkgname}-${pkgver}/COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/license.txt" install -d "${pkgdir}/usr/lib/pcsc/drivers" }