# Tanım: SCard API (PC/SC) kullanan smartkartlara erişim kütüphanesi
# URL: https://pcsclite.alioth.debian.org/pcsclite.html
# Paketçi: milisarge
# Gerekler: python

isim=pcsc-lite
surum=1.8.21
devir=1
kaynak=(https://alioth.debian.org/frs/download.php/file/4216/$isim-$surum.tar.bz2)

derle() {
	cd $isim-$surum
	sed -i -e "s:python:python2:g" src/spy/pcsc-spy
	./configure --prefix=/usr \
	  --sbindir=/usr/bin \
	  --enable-libudev \
	  --sysconfdir=/etc \
	  --enable-ipcdir=/run/pcscd \
	  --enable-usbdropdir=/usr/lib/pcsc/drivers
	make
	make DESTDIR=$PKG install
	install -d ${PKG}/usr/lib/pcsc/drivers
}
