updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / qesteidutil-svn / PKGBUILD
blobfa034f24a841db3db3fe8fe0b1773a7df4b3249c
1 # Maintainer: kevku <kevku@gmx.com>
2 pkgname=qesteidutil-svn
3 _pkgname=qesteidutil
4 pkgver=3902
5 pkgrel=1
6 pkgdesc="Estonian ID-card utility (Community dev version)"
7 arch=('x86_64' 'i686')
8 url="http://code.google.com/p/esteid"
9 license=('LGPL')
10 depends=('smartcardpp-svn' 'qt' 'libp11')
11 makedepends=('cmake' 'subversion')
12 conflicts=('sk-qesteidutil-svn')
13 install=('qesteidutil.install')
15 _svntrunk=https://esteid.googlecode.com/svn/$_pkgname/trunk
16 _svnmod=$_pkgname
18 build() {
19   cd "$srcdir"
21   if [ -d $_svnmod/.svn ]; then
22     (cd $_svnmod && svn up -r $pkgver)
23   else
24     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
25   fi
27   msg "SVN checkout done or server timeout"
28   msg "Starting make..."
30   rm -rf "$srcdir/$_svnmod-build"
31   cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
32   cd "$srcdir/$_svnmod-build"
34   cmake . -DCMAKE_INSTALL_PREFIX=/usr -DLIB_SUFFIX="" -DSYSCONF_INSTALL_DIR=/etc
35   make
38 package() {
39   cd "$srcdir/$_svnmod-build"
40   make DESTDIR="$pkgdir/" install