updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / kdevmon-svn / PKGBUILD
blob97c4df39e38d746f5967150b1868be80dc02f117
1 # Contributor: bgmiki <vmikiv@gmail.com>
2 pkgname=kdevmon-svn
3 pkgver=835924
4 pkgrel=6
5 pkgdesc="Graphics-Network-Monitor-KDE4"
6 arch=('i686' 'x86_64')
7 url="http://www.kde.org"
8 license=('GPL')
9 depends=('kdelibs')
10 makedepends=('subversion')
11 source=()
12 md5sums=()
13 _svntrunk=svn://anonsvn.kde.org/home/kde/trunk/playground/network/kdevmon
14 _svnmod=kdevmon
15 _langs=()
17 build() {
18   # start building
19   cd $startdir/src
21   if [ -d $_svnmod/.svn ]; then
22     (cd $_svnmod && svn up)
23   else
24     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
25   fi
27   msg "SVN checkout done or server timeout"
28   msg "Starting make..."
30   mkdir -p $_svnmod-build
31   cd $_svnmod-build
33   cmake $startdir/src/$_svnmod -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RELWITHDEBINFO
35   make || return 1
36   make DESTDIR=$startdir/pkg install || return 1
38   #clean up build directory
39   rm -rf $startdir/src/$_svnmod-build