updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / pcsc-ctapi-wrapper / PKGBUILD
blob9b7549f5f7cb08978c9a946e225c10aeb7499b2b
1 # Maintainer: Thilo Berndt <mail AT schlehmil DOT org>
3 pkgname=pcsc-ctapi-wrapper
4 pkgver=0.3
5 pkgrel=1
6 arch=('i686' 'x86_64')
7 license=('GPL')
8 pkgdesc="A wrapper library for using smartcard readers that support PCSC only (e.g. SCR24x) with any application that supports CTAPI."
9 url="http://sourceforge.net/projects/pcsc-ctapi"
10 depends=('pcsclite')
11 source=("http://downloads.sourceforge.net/project/pcsc-ctapi/pcsc-ctapi/${pkgver}/${pkgname}-${pkgver}.tar.gz")
12 md5sums=('d95cf20bba354fb04e054f1f6a1e47d8')
14 _pkgname="${pkgname}-${pkgver}"
16 build() {
17         cd $srcdir/${_pkgname}
18         make
21 package() {
22         # copy library
23         cd $srcdir/${_pkgname}
24         install -D -m755 libpcsc-ctapi-wrapper.so.${pkgver} ${pkgdir}/usr/lib/libpcsc-ctapi-wrapper.so.${pkgver}
25         # create symlinks
26         cd ${pkgdir}/usr/lib
27         ln -s libpcsc-ctapi-wrapper.so.${pkgver} libpcsc-ctapi-wrapper.so.0
28         ln -s libpcsc-ctapi-wrapper.so.${pkgver} libpcsc-ctapi-wrapper.so