desktop/pcsclite/PKGBUILD

38 lines
1.0 KiB
Bash
Raw Normal View History

pkgname=pcsclite
_pkgname=pcsc-lite
2016-01-11 09:22:37 +08:00
pkgver=1.8.15
2015-10-11 04:20:54 +08:00
_code=39
pkgrel=1
pkgdesc="PC/SC Architecture smartcard middleware library"
2013-12-17 00:00:43 +08:00
arch=('x86_64')
url="https://alioth.debian.org/projects/pcsclite/"
license=('BSD')
depends=('udev')
2012-10-21 18:23:42 +08:00
options=('!libtool' '!docs')
2015-10-11 04:20:54 +08:00
source=("https://alioth.debian.org/frs/download.php/latestfile/${_code}/pcsc-lite-${pkgver}.tar.bz2")
2016-01-11 09:22:37 +08:00
sha256sums=('ad8b1f3d2c59d3a966cb203fc74588629c4a5fa30f8ad9005e06ef7aa445d341')
build() {
2013-12-17 00:00:43 +08:00
cd "${srcdir}/${_pkgname}-${pkgver}"
2012-10-21 18:23:42 +08:00
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() {
2012-10-21 18:23:42 +08:00
cd "${srcdir}/${_pkgname}-${pkgver}"
2012-10-21 18:23:42 +08:00
make DESTDIR="${pkgdir}" install
2012-10-21 18:23:42 +08:00
install -D "${srcdir}/${_pkgname}-${pkgver}/COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/license.txt"
install -d "${pkgdir}/usr/lib/pcsc/drivers"
}