# Maintainer: André Klitzing pkgname=acsccid pkgver=1.1.9 pkgrel=1 pkgdesc="PCSC driver for ACS CCID smart card reader" url="https://github.com/acshk/acsccid" arch="all" license="LGPL-2.1-or-later" depends="pcsc-lite" makedepends="pcsc-lite-dev libusb-dev perl flex" options="!check" # upstream does not provide tests subpackages="$pkgname-udev::noarch" source="https://downloads.sourceforge.net/acsccid/acsccid-$pkgver.tar.bz2" build() { ./configure \ --build=$CBUILD \ --host=$CHOST \ --target=$CTARGET \ --prefix=/usr make } package() { make DESTDIR="$pkgdir" install } udev() { depends="" pkgdesc="$pkgdesc (udev rules)" install_if="$pkgname=$pkgver-r$pkgrel udev" cd "$builddir" install -Dm644 src/92_pcscd_acsccid.rules -t "$subpkgdir"/usr/lib/udev/rules.d } sha512sums=" 03c5d7f66bc701c6f74be9f791d70ed6c73fda342b04d08ca16d7188cb1de41ce49a4e81d6a8474e8a4e57b5c86a78d7ff343ed9fe9b5a0a3e9e76742de7f08b acsccid-1.1.9.tar.bz2 "