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>
7 pkgdesc="Implements drivers for several smart card readers for use with HAL"
9 url="http://www.opensc-project.org/openct"
12 backup=(etc/openct.conf)
13 depends=('libtool' 'hal')
14 optdepends=('pcsclite: for support of PCSC stack')
17 source=(http://www.opensc-project.org/files/openct/openct-$pkgver.tar.gz \
19 md5sums=('a1da3358ab798f1cb9232f1dbababc21'
20 '0f3544b0fad2d31f5249c2381c3e8c03')
23 cd $startdir/src/$_dirname-$pkgver
24 ./configure --prefix=/usr \
26 --localstatedir=/var \
28 --with-daemon-user=root \
29 --with-daemon-groups=root \
30 --with-bundle=/usr/lib/pcsc/drivers || return 1
32 make DESTDIR=$startdir/pkg install || return 1
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