1 # Contributor: Sphax <zecmerquise@gmail.com>
2 pkgname=plasmoid-news-svn
5 pkgdesc="A plasmoid to display news from various sources"
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/news"
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 prevent cmake to fail
35 patch -Np0 -i $startdir/cmakelists.patch || return 1
36 # Fix a call to Plasma::Theme::ButtonBackgroundColor
37 # Apparently it doesn't exist in KDE 4.1, only in 4.2
38 patch -Np0 -i $startdir/plasma_theme_buttonbackgroundcolor.patch || return 1
43 -DCMAKE_INSTALL_PREFIX=/usr \
44 -DCMAKE_BUILD_TYPE=Release || return 1
46 make DESTDIR=$startdir/pkg install || return 1