2011-09-14 18:57:58 +08:00
|
|
|
pkgname=ccid
|
2018-05-07 18:57:42 +08:00
|
|
|
pkgver=1.4.29
|
2017-02-22 06:27:37 +08:00
|
|
|
pkgrel=1
|
2011-09-14 18:57:58 +08:00
|
|
|
pkgdesc="A generic USB Chip/Smart Card Interface Devices driver"
|
2013-02-15 05:52:07 +08:00
|
|
|
arch=('x86_64')
|
2018-05-07 18:57:42 +08:00
|
|
|
url="https://ccid.apdu.fr/"
|
2011-09-14 18:57:58 +08:00
|
|
|
license=('LGPL' 'GPL')
|
|
|
|
depends=('pcsclite')
|
|
|
|
backup=(etc/reader.conf.d/libccidtwin)
|
2018-05-07 18:57:42 +08:00
|
|
|
source=("https://ccid.apdu.fr/files/${pkgname}-${pkgver}.tar.bz2")
|
|
|
|
sha256sums=('a5432ae845730493c04e59304b5c0c6103cd0e2c8827df57d69469a3eaaab84d')
|
2011-09-14 18:57:58 +08:00
|
|
|
|
|
|
|
build() {
|
2012-10-21 20:05:52 +08:00
|
|
|
cd $srcdir/$pkgname-$pkgver
|
2015-10-11 04:22:51 +08:00
|
|
|
./configure --prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--enable-twinserial \
|
|
|
|
--enable-serialconfdir=/etc/reader.conf.d
|
2011-09-14 18:57:58 +08:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2012-10-21 20:05:52 +08:00
|
|
|
cd $srcdir/$pkgname-$pkgver
|
2011-09-14 18:57:58 +08:00
|
|
|
make DESTDIR=$pkgdir install
|
2015-10-11 04:22:51 +08:00
|
|
|
# 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
|
2018-05-07 18:57:42 +08:00
|
|
|
|
|
|
|
install -Dm644 src/92_pcscd_ccid.rules "${pkgdir}/usr/lib/udev/rules.d/92_pcscd_ccid.rules"
|
2011-09-14 18:57:58 +08:00
|
|
|
}
|