2011-09-14 18:57:58 +08:00
|
|
|
pkgname=pcsclite
|
|
|
|
_pkgname=pcsc-lite
|
2016-08-02 02:46:32 +08:00
|
|
|
pkgver=1.8.17
|
2015-10-11 04:20:54 +08:00
|
|
|
_code=39
|
2011-09-14 18:57:58 +08:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="PC/SC Architecture smartcard middleware library"
|
2013-12-17 00:00:43 +08:00
|
|
|
arch=('x86_64')
|
2011-09-14 18:57:58 +08:00
|
|
|
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-08-02 02:46:32 +08:00
|
|
|
sha256sums=('d72b6f8654024f2a1d2de70f8f1d39776bd872870a4f453f436fd93d4312026f')
|
2011-09-14 18:57:58 +08:00
|
|
|
|
|
|
|
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
|
2011-09-14 18:57:58 +08:00
|
|
|
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2012-10-21 18:23:42 +08:00
|
|
|
cd "${srcdir}/${_pkgname}-${pkgver}"
|
2011-09-14 18:57:58 +08:00
|
|
|
|
2012-10-21 18:23:42 +08:00
|
|
|
make DESTDIR="${pkgdir}" install
|
2011-09-14 18:57:58 +08:00
|
|
|
|
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"
|
2011-09-14 18:57:58 +08:00
|
|
|
}
|