updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / acsccid / PKGBUILD
blob28b6cc7fcc749ebd935e9a983737959b6d6866c6
1 # Maintainer: Pascal E. <archlinux at hardfalcon dot net>
2 pkgname="acsccid"
3 pkgver="1.0.2"
4 pkgrel=3
5 pkgdesc="acsccid is a PC/SC driver for Linux/Mac OS X and it supports ACS CCID smart card readers. This library provides a PC/SC IFD handler implementation and communicates with the readers through the PC/SC Lite resource manager (pcscd)."
6 arch=('i686' 'x86_64')
7 url="http://acsccid.sourceforge.net/"
8 license=('LGPL2.1')
9 depends=('pcsclite>=1.3.3' 'libusb-compat>=0.1.3')
10 makedepends=('pcsclite>=1.3.3' 'libusb-compat>=0.1.3')
11 source=("https://downloads.sourceforge.net/acsccid/acsccid-1.0.2.tar.bz2" "pcsc-lite-1_7_3.patch")
12 md5sums=('7ec9f3c1e5adec9209abdeef2e7bac61' 'b7eacf57433e7a105c79136700f0f158')
13 sha1sums=('208fd6453e6de78f2926d2621d9486662eaad8f8' '4471b82152c0aefc34d86e047dc066c3a333d1ec')
14 sha512sums=('cac7ac53660a8e099d8e6581bc5b199c52ccee3b375b203e9f50c65afd69047d134140079f85f1efbd7f38671c3e55cc5e463b5a3faf7bab31d332c7ce921a68' '46eaeb7db35adf75d4c70e71a98e7dab650d22bce3ac8f4a5ac9d111672cfaa2bebb0982a3695066bb95bb3ab9be4f991291e4052a30d5f2837d3ce8895827a1')
16 build()
18         cd "${srcdir}/${pkgname}-${pkgver}" || return 1
19         patch -p1 -i "$srcdir/pcsc-lite-1_7_3.patch" || return 1
20         ./configure --prefix=/usr --enable-udev || return 1
21         make || return 1
22 }       
24 package() {
25   cd "${srcdir}/${pkgname}-${pkgver}" || return 1
26   make DESTDIR="${pkgdir}" install || return 1
27   install -Dm644 AUTHORS "$pkgdir/usr/share/licenses/$pkgname/AUTHORS" || return 1
28   install -Dm644 ChangeLog "$pkgdir/usr/share/licenses/$pkgname/ChangeLog" || return 1
29   install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING" || return 1
30   install -Dm644 INSTALL "$pkgdir/usr/share/licenses/$pkgname/INSTALL" || return 1
31   install -Dm644 NEWS "$pkgdir/usr/share/licenses/$pkgname/NEWS" || return 1
32   install -Dm644 README "$pkgdir/usr/share/licenses/$pkgname/README" || return 1