description="PC/SC Architecture smartcard tools"
url="http://ludovic.rousseau.free.fr/softwares/pcsc-tools/"

license="GPL"

packager="spiky <spiky@nutyx.org>"
contributors="Pierre,Tnut"

makedepends=(pcsclite perl-pcsc perl-glib pkgconf)
run=(perl-pcsc)

name=pcsc-tools
version=1.7.1

source=(https://pcsc-tools.apdu.fr/$name-$version.tar.bz2)

build() {
  cd $name-$version
  ./configure --prefix=/usr
  sed -i -e 's:-Wall -O2:${CFLAGS}:g' Makefile
  make
  make DESTDIR=$PKG/usr install

  install -Dm644 LICENCE $PKG/usr/share/licenses/$name/LICENSE
}

