4 pkgdesc="KDE VPN client, svn version"
6 url="http://gna.org/kvpnc"
9 makedepends=('cmake' 'automoc4')
14 _svntrunk="svn://anonsvn.kde.org/home/kde/trunk/playground/network/kvpnc"
19 msg "Downloading from ${_svntrunk} ..."
21 if [ -d ${_svnmod}/.svn ]; then
22 (cd ${_svnmod} && svn up -r ${pkgver})
24 svn co ${_svntrunk} --config-dir ./ -r ${pkgver} ${_svnmod}
26 msg2 "SVN checkout done or server timeout"
28 msg "Creating temporary build directory..."
29 rm -Rf ${_svnmod}-build
30 cp -r ${_svnmod} ${_svnmod}-build
33 msg "Building and installing..."
34 cd $srcdir/${pkgname}-${pkgver}-kde4
35 cmake . -DCMAKE_INSTALL_PREFIX=/usr
37 make DESTDIR=$pkgdir install || return 1
38 msg "Removing build directory..."
40 rm -Rf ${_svnmod}-build