1 # Maintainer: kevku <kevku@gmx.com>
2 pkgname=sk-qdigidoc-svn
6 pkgdesc="Client for digidoc.sk.ee (Official version by AS Sertifitseerimiskeskus)"
8 url="http://www.id.ee/"
10 depends=('sk-libdigidocpp-svn' 'qt' 'libldap' 'shared-mime-info')
11 makedepends=('cmake' 'subversion' 'xsd')
12 conflicts=('qdigidoc-svn')
13 install=('qdigidoc.install')
15 _svntrunk=https://svn.eesti.ee/projektid/idkaart_public/trunk/$_pkgname
19 # --as-needed breaks linking
23 rm -rf "$srcdir/$_svnmod"
24 if [ -d $_svnmod/.svn ]; then
25 (cd $_svnmod && svn up -r $pkgver)
27 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
30 msg "SVN checkout done or server timeout"
31 msg "Starting make..."
33 rm -rf "$srcdir/$_svnmod-build"
34 cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
35 cd "$srcdir/$_svnmod-build"
36 #fix lame ubantu crap.
37 sed -i 's|SET(LIB_SUFFIX 64)|SET(LIB_SUFFIX "")|g' cmake/modules/InstallSettings.cmake
38 cmake . -DCMAKE_INSTALL_PREFIX=/usr -DLIB_SUFFIX="" -DSYSCONF_INSTALL_DIR=/etc
43 cd "$srcdir/$_svnmod-build"
44 make DESTDIR="$pkgdir/" install