desktop/pcsclite/PKGBUILD
2013-12-16 16:00:43 +00:00

42 lines
1.2 KiB
Bash

# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>
# Contributor: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Daniel Plaza <daniel.plaza.espi@gmail.com>
pkgname=pcsclite
_pkgname=pcsc-lite
pkgver=1.8.10
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')
_srcver=3963
source=("https://alioth.debian.org/frs/download.php/file/${_srcver}/${_pkgname}-${pkgver}.tar.bz2")
sha256sums=('607c4bd730526d282a63edb2ba4ee043f497877be642c5c647e37995e21f2612')
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"
}