# Description: Middleware to access a smart card using SCard API (PC/SC).
# URL: https://pcsclite.apdu.fr/
# Maintainer: Tim Biermann, tbier at posteo dot de

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

build() {
  cd pcsc-lite-$version

  ./configure \
    --prefix=/usr \
    --sysconfdir=/etc \
    --enable-filter \
    --enable-ipcdir=/run/pcscd \
    --enable-libudev \
    --enable-usbdropdir=/usr/lib/pcsc/drivers \
    --disable-libsystemd
  make
  make DESTDIR=$PKG install

  rm -r $PKG/usr/share/doc
  install -d $PKG/usr/lib/pcsc/drivers
}
