1 # Contributor: Sphax <zecmerquise@gmail.com>
2 pkgname=plasmoid-toggle-compositing-svn
5 pkgdesc="A plasmoid to toggle KWin compositing"
7 url="http://www.kde.org"
9 depends=('kdelibs' 'kdebase-workspace')
10 makedepends=('cmake' 'gcc>=4.*' 'automoc4' 'subversion')
14 _svntrunk="svn://anonsvn.kde.org/home/kde/trunk/playground/base/plasma/applets/toggle-compositing"
15 _svnmod="toggle-compositing"
20 if [ -d $_svnmod/.svn ]; then
21 (cd $_svnmod && svn up)
23 svn co $_svntrunk --config-dir ./ $_svnmod
26 msg "SVN checkout done or server timeout"
28 if [ -d $_svnmod-build ]; then
31 cp -r $_svnmod $_svnmod-build
34 # Fix to install correctly the svg file
35 patch -Np0 -i $startdir/cmakelists.patch || return 1
36 mv images/onoff_switch.svg.old images/onoff_switch.svg
41 -DCMAKE_INSTALL_PREFIX=/usr \
42 -DCMAKE_BUILD_TYPE=Release || return 1
44 make DESTDIR=$startdir/pkg install || return 1