# Maintainer: André Klitzing <aklitzing@gmail.com>
pkgname=pcsc-cyberjack
pkgver=3.99.5_p11
_pkgver=${pkgver/_p/_SP}
_filever=${_pkgver%_SP*}final.${_pkgver#*_}
pkgrel=0
pkgdesc="PCSC driver for Reiner SCT cyberjack card reader"
url="http://www.reiner-sct.com/"
arch="all"
license="LGPL"
depends="pcsc-lite"
makedepends="pcsc-lite-dev libusb-dev"
subpackages="$pkgname-doc"
options="!check"
source="http://support.reiner-sct.de/downloads/LINUX/V${_pkgver}/pcsc-cyberjack-${_filever}.tar.bz2"
builddir="$srcdir/"$pkgname-${_filever}

build() {
	cd "$builddir"
	./configure \
		--prefix=/usr \
		--disable-static \
		--mandir=/usr/share/man/man8 \
		--sysconfdir=/etc/"${pkgname}"  \
		--enable-udev \
		--with-usbdropdir=$(pkg-config libpcsclite --variable=usbdropdir)
	make
}

package() {
	cd "$builddir"
	make DESTDIR="${pkgdir}" install
}

sha512sums="4d63ef0442c7e919456e8b6ab1d571ab621eb45fc34fc9b61a7a024f1ae2115f7474b4aa538ee7fb8bf4ce016067c876d9970b52e6b4e8b531e2d736677ab794  pcsc-cyberjack-3.99.5final.SP11.tar.bz2"
