# Description: Middleware to access a smart card using SCard API (PC/SC)
# URL: https://pcsclite.alioth.debian.org/pcsclite.html
# Maintainer: Erich Eckner, crux at eckner dot net
# Contributor: John Vogel, jvogel4 at stny dot rr dot com
# Depends on:

name=pcsc-lite
version=1.9.4
release=1
source=(https://pcsclite.apdu.fr/files/$name-$version.tar.bz2)

build() {
	ls -lA
	cd $name-$version
	./configure \
		--prefix=/usr \
		--sbindir=/usr/bin \
		--sysconfdir=/etc \
		--enable-filter \
		--enable-ipcdir=/run/pcscd \
		--enable-libudev \
		--enable-usbdropdir=/usr/lib/pcsc/drivers \
		--disable-libsystemd
	make
	make DESTDIR=$PKG install
	rm $PKG/usr/share/doc/pcsc-lite/README.*
}