updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / pkiclient / PKGBUILD
blob6c7ce558a0b0d7670c4a8b9dd4892b53fbdd8ff1
1 # Maintainer: Alexsandr Pavlov <kidoz at mail dot ru>
3 pkgname=pkiclient
4 pkgver=5.00.28
5 pkgrel=1
6 pkgdesc="eToken PKI client"
7 arch=('i686')
8 url="http://www.aladdin-rd.ru"
9 license=('custom')
10 depends=('openct' 'pcsclite')
11 makedepends=('libarchive>=2.4.12' 'rpmextract' 'unzip')
12 provides=()
13 conflicts=()
14 source=(http://www.aladdin-rd.ru/upload/iblock/55b/etokenpkiclientlinux50sp1_2009-08-18.zip)
15 md5sums=('a08ce8024f6b7bfa93aa289e345b2a12')
17 build() {
18         cd "$srcdir/RPM 32/RPM files/"
19   
20         rpmextract.sh ${pkgname}-${pkgver}-0.i386.rpm
21   
22         cp -ra etc $pkgdir/
23         cp -ra lib $pkgdir/
24         cp -ra usr $pkgdir/
25         cp -ra var $pkgdir/
28 package() {
29         rm -rf $pkgdir/etc/rc.d
30         rm -rf $pkgdir/etc/init.d
31         rm -rf $pkgdir/usr/bin/eTSrv
33         mkdir $pkgdir/usr/lib/pcsc
34   
35         cp -ra $pkgdir/usr/share/eToken/drivers $pkgdir/usr/lib/pcsc/
36   
37         cd $pkgdir/usr/lib/pcsc/drivers/aks-ifdh.bundle/Contents/Linux
38   
39         ln -s libAksIfdh.so.5.00 libAksIfdh.so