updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / openct-hal / PKGBUILD
blob9939c9fa9069d9a9fe08f899f41ba0a40799356f
1 # Contributor: William Rea <sillywilly@gmail.com>
2 # Contributor: Lorenzo Nizzi Grifi Gargiolli <lorenzo.nizzi.grifi@gmail.com>
3 # Maintainer: Oleg Smirnov <oleg.smirnov@gmail.com>
4 pkgname=openct-hal
5 pkgver=0.6.20
6 pkgrel=3
7 pkgdesc="Implements drivers for several smart card readers for use with HAL"
8 arch=('i686' 'x86_64')
9 url="http://www.opensc-project.org/openct"
10 options=('!libtool')
11 license=('LGPL')
12 backup=(etc/openct.conf)
13 depends=('libtool' 'hal')
14 optdepends=('pcsclite: for support of PCSC stack')
15 conflicts=('openct')
16 provides=('openct')
17 source=(http://www.opensc-project.org/files/openct/openct-$pkgver.tar.gz \
18         openct )
19 md5sums=('a1da3358ab798f1cb9232f1dbababc21'
20          '0f3544b0fad2d31f5249c2381c3e8c03')
21 _dirname=openct
22 build() {
23         cd $startdir/src/$_dirname-$pkgver
24         ./configure --prefix=/usr \
25                     --sysconfdir=/etc \
26                     --localstatedir=/var \
27                     --enable-usb \
28                     --with-daemon-user=root \
29                     --with-daemon-groups=root \
30                     --with-bundle=/usr/lib/pcsc/drivers || return 1
31         make || return 1
32         make DESTDIR=$startdir/pkg install || return 1
33         
34         install -D -m 644 $startdir/src/$_dirname-$pkgver/etc/openct.fdi \
35                           $startdir/pkg/etc/hal/fdi/information/10-usb-openct.fdi || return 1
36         install -D -m 644 $startdir/src/$_dirname-$pkgver/etc/openct-policy.fdi \
37                           $startdir/pkg/etc/hal/fdi/policy/10-usb-openct.fdi || return 1
38         install -D -m 755 $startdir/src/$_dirname-$pkgver/etc/openct.hald \
39                           $startdir/pkg/usr/lib/hal/hald-addon-openct || return 1
40         install -D -m 644 $startdir/src/$_dirname-$pkgver/etc/openct.conf \
41                           $startdir/pkg/etc/openct.conf || return 1
42         install -D -m 755 $startdir/src/openct \
43                           $startdir/pkg/etc/rc.d/openct || return 1
44         mkdir -p $startdir/pkg/var/run/openct