updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / networkmanager-plasmoid-svn / PKGBUILD
blobab4bef68bc34696392b4b90890ded6655726a293
1 # Contributor: Jakub Schmidtke <sjakub-at-gmail.com>                                                                                                                                                        
3 pkgname=networkmanager-plasmoid-svn
4 pkgver=1007572
5 pkgrel=1
6 pkgdesc="KDE4 NetworkManager plasmoid"
7 arch=('i686' 'x86_64')
8 url="http://plasma.kde.org/"
9 license=('GPL')
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')
13 source=()
14 md5sums=()
16 _svntrunk=svn://anonsvn.kde.org/home/kde/trunk/playground/base/plasma/applets/networkmanager
17 _svnmod=networkmanager
19 build() {
20   cd ${srcdir}
21   rm -rf ${srcdir}/build
23   if [ -d ${_svnmod} ]; then
24     msg "Updating SVN tree ..."
25     cd ${_svnmod}
26     svn revert -R .
27     svn up -r ${pkgver} || return 1
28     msg "SVN update finished, starting build ..."
29   else
30     msg "Doing SVN checkout ..."
31     svn co ${_svntrunk} ${_svnmod} -r ${pkgver} || return 1
32     cd ${_svnmod}
33     msg "SVN checkout finished, starting build ..."
34   fi
36   mkdir -p ${srcdir}/build
37   cd ${srcdir}/build
39   cmake ../${_svnmod} -DCMAKE_INSTALL_PREFIX=/usr -DDBUS_SYSTEM_POLICY_DIR=/etc/dbus-1/system.d -DCMAKE_BUILD_TYPE=Release
40   make || return 1
41   make DESTDIR=${pkgdir} install || return 1