1 # Contributor: Jakub Schmidtke <sjakub-at-gmail.com>
3 pkgname=networkmanager-plasmoid-svn
6 pkgdesc="KDE4 NetworkManager plasmoid"
8 url="http://plasma.kde.org/"
10 depends=('kdelibs>=4.3.0' 'kdebase-workspace>=4.3.0' 'networkmanager>=0.7.1')
11 makedepends=('cmake' 'subversion' 'python' 'automoc4')
12 optdepends=('networkmanager-openvpn-kde: for OpenVPN support')
16 _svntrunk=svn://anonsvn.kde.org/home/kde/trunk/playground/base/plasma/applets/networkmanager
17 _svnmod=networkmanager
21 rm -rf ${srcdir}/build
23 if [ -d ${_svnmod} ]; then
24 msg "Updating SVN tree ..."
27 svn up -r ${pkgver} || return 1
28 msg "SVN update finished, starting build ..."
30 msg "Doing SVN checkout ..."
31 svn co ${_svntrunk} ${_svnmod} -r ${pkgver} || return 1
33 msg "SVN checkout finished, starting build ..."
36 mkdir -p ${srcdir}/build
39 cmake ../${_svnmod} -DCMAKE_INSTALL_PREFIX=/usr -DDBUS_SYSTEM_POLICY_DIR=/etc/dbus-1/system.d -DCMAKE_BUILD_TYPE=Release
41 make DESTDIR=${pkgdir} install || return 1