updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / plasmoid-system-monitor-svn / PKGBUILD
blob9cb8c606ea8635424e699a3bf0fc7fb2548eac1b
1 # Contributor: Sphax <zecmerquise@gmail.com>
2 pkgname=plasmoid-system-monitor-svn
3 pkgver=842150
4 pkgrel=1
5 pkgdesc="A plasmoid system monitor (network,cpu,temperature)"
6 arch=(i686 x86_64)
7 url="http://www.kde.org"
8 license="GPL"
9 depends=('kdelibs' 'kdebase-workspace')
10 makedepends=('cmake' 'gcc>=4.*' 'automoc4' 'subversion')
11 source=()
12 md5sums=()
14 _svntrunk="svn://anonsvn.kde.org/home/kde/trunk/playground/base/plasma/applets/system-monitor"
15 _svnmod="system-monitor"
17 build()
19         cd $startdir/src
20         if [ -d $_svnmod/.svn ]; then
21                 (cd $_svnmod && svn up)
22         else
23                 svn co $_svntrunk --config-dir ./ $_svnmod
24         fi
26         msg "SVN checkout done or server timeout"
28         if [ -d $_svnmod-build ]; then
29                 rm -rf $_svnmod-build
30         fi
31         cp -r $_svnmod $_svnmod-build
33         cd $_svnmod-build
34         # Fix to enable compilation
35         patch -Np0 -i $startdir/cmakelists.patch || return 1
37         mkdir cmake-build
38         cd cmake-build
39         cmake ../ \
40                 -DCMAKE_INSTALL_PREFIX=/usr \
41                 -DCMAKE_BUILD_TYPE=Release || return 1
42         make || return 1
43         make DESTDIR=$startdir/pkg install || return 1