desktop/ccid/PKGBUILD

32 lines
1.1 KiB
Bash
Raw Normal View History

2015-06-20 20:30:04 +08:00
# contribution from Arch https://www.archlinux.org/packages/community/x86_64/ccid/
pkgname=ccid
2016-01-11 09:24:16 +08:00
pkgver=1.4.22
2015-10-11 04:22:51 +08:00
_code=112
2015-05-02 20:46:53 +08:00
pkgrel=1
pkgdesc="A generic USB Chip/Smart Card Interface Devices driver"
2013-02-15 05:52:07 +08:00
arch=('x86_64')
url="http://pcsclite.alioth.debian.org/ccid.html"
license=('LGPL' 'GPL')
depends=('pcsclite')
backup=(etc/reader.conf.d/libccidtwin)
2015-10-11 04:22:51 +08:00
source=("https://alioth.debian.org/frs/download.php/latestfile/${_code}/ccid-${pkgver}.tar.bz2")
2016-01-11 09:24:16 +08:00
sha256sums=('9c5c8be465b6d33316be7a7ea720c24a776e2d76be9072116d28fc9adf58c106')
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
make
}
package() {
2012-10-21 20:05:52 +08:00
cd $srcdir/$pkgname-$pkgver
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
}