# $Id: PKGBUILD 113348 2014-06-19 12:42:15Z giovanni $ # Maintainer: Giovanni Scafora # Contributor: Daniel Plaza pkgname=ccid pkgver=1.4.17 pkgrel=1 pkgdesc="A generic USB Chip/Smart Card Interface Devices driver" arch=('i686' 'x86_64') url="http://pcsclite.alioth.debian.org/ccid.html" license=('LGPL' 'GPL') depends=('pcsclite' 'libusbx' 'flex') makedepends=('pkg-config') backup=(etc/reader.conf.d/libccidtwin) source=("https://alioth.debian.org/frs/download.php/file/4091/${pkgname}-${pkgver}.tar.bz2") md5sums=('a227a20a0dd034cd4bb7400806a0a2d0') build() { cd "${srcdir}/${pkgname}-${pkgver}" ./configure --prefix=/usr \ --sysconfdir=/etc \ --enable-twinserial \ --enable-serialconfdir=/etc/reader.conf.d make } package() { cd "${srcdir}/${pkgname}-${pkgver}" make DESTDIR="${pkgdir}" install # move the configuration file in /etc and create a symbolic link mv "${pkgdir}/usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist" "${pkgdir}/etc/libccid_Info.plist" ln -s /etc/libccid_Info.plist ${pkgdir}/usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist }