1 # Contributor: Lawrence Lee <valheru@facticius.net>
5 pkgdesc="Toys for KDE4"
7 url="http://www.kde.org"
9 depends=('kdebase4-workspace-svn')
10 makedepends=('subversion' 'cmake')
16 _svntrunk=svn://anonsvn.kde.org/home/kde/trunk/KDE/kdetoys
20 . $startdir/kde4.profile
25 if [ -d $_svnmod/.svn ]; then
26 (cd $_svnmod && svn up)
28 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
31 msg "SVN checkout done or server timeout"
32 msg "Starting make..."
34 cp -r $_svnmod $_svnmod-build
37 cmake $startdir/src/$_svnmod -DCMAKE_INSTALL_PREFIX=/opt/kde4 -DCMAKE_BUILD_TYPE=RELWITHDEBINFO
40 make DESTDIR=$startdir/pkg install || return 1
42 #clean up build directory
43 rm -rf $startdir/src/$_svnmod-build