updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / pcsc-scl011 / PKGBUILD
blob580385cb736f6703ff6d1abdbe24fb77d4469e0d
1 # Maintainer: Heiko Baums <heiko@baums-on-web.de>
3 pkgname=pcsc-scl011
4 pkgver=2.06
5 pkgrel=1
6 pkgdesc="PCSC driver for Identive (formerly SCM Microsystems) SCL011 nPA Reader"
7 url="http://www.identive-infrastructure.com"
8 license=('custom')
9 arch=('i686' 'x86_64')
10 depends=('pcsclite')
11 [ "$CARCH" = "i686"   ] && _arch=32bit
12 [ "$CARCH" = "x86_64" ] && _arch=64bit
13 source=(http://support.identive-infrastructure.com/download/npa/scl011_${pkgver}_linux_${_arch}.tar.gz)
14 [ "$CARCH" = "i686"   ] && md5sums=('04f18aeebbca688029d0783b0d0ccb2f')
15 [ "$CARCH" = "x86_64" ] && md5sums=('b65e80c081b4e3b7cce1715fb8e1b30e')
17 package() {
18   cd ${srcdir}/scl011_${pkgver}_linux_${_arch}
20   install -d -m755 -o root -g root ${pkgdir}/usr/share/licenses/${pkgname}
21   install -d -m755 -o root -g root ${pkgdir}/usr/lib/pcsc/drivers
22   install -d -m700 -o root -g root ${pkgdir}/usr/lib/pcsc/drivers/SCL011.bundle
23   install -d -m700 -o root -g root ${pkgdir}/usr/lib/pcsc/drivers/SCL011.bundle/Contents
24   install -d -m700 -o root -g root ${pkgdir}/usr/lib/pcsc/drivers/SCL011.bundle/Contents/Linux
25   install -D -m600 -o root -g root proprietary/SCL011.bundle/Contents/Info.plist ${pkgdir}/usr/lib/pcsc/drivers/SCL011.bundle/Contents
26   install -D -m700 -o root -g root proprietary/SCL011.bundle/Contents/Linux/libSCL011.so.2.06 ${pkgdir}/usr/lib/pcsc/drivers/SCL011.bundle/Contents/Linux
27   install -D -m644 -o root -g root proprietary/license ${pkgdir}/usr/share/licenses/${pkgname}