updated on Thu Jan 19 16:10:29 UTC 2012
[aur-mirror.git] / kvpnc-svn / PKGBUILD
blob31ddaf3cb37234b01bac2f941cec795167fe06c1
1 pkgname=kvpnc-svn
2 pkgver=1087151
3 pkgrel=1
4 pkgdesc="KDE VPN client, svn version"                                                                                         
5 arch=('i686' 'x86_64')
6 url="http://gna.org/kvpnc"
7 license=('GPL')
8 depends=('kdelibs')
9 makedepends=('cmake' 'automoc4')
10 install=kvpnc.install
11 conflicts=('kvpnc')
12 provides=('kvpnc')
14 _svntrunk="svn://anonsvn.kde.org/home/kde/trunk/playground/network/kvpnc"
15 _svnmod="kvpnc-kde4"
18 build() {
19 msg "Downloading from ${_svntrunk} ..."
20   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
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
31   cd ${_svnmod}-build
33 msg "Building and installing..."  
34   cd $srcdir/${pkgname}-${pkgver}-kde4
35   cmake . -DCMAKE_INSTALL_PREFIX=/usr
36   make || return 1
37   make DESTDIR=$pkgdir install || return 1
38 msg "Removing build directory..."
39   cd ${srcdir}
40   rm -Rf ${_svnmod}-build