updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / plasmoid-news-svn / PKGBUILD
blob8ac7d8e8c6ce86ec51c02ec044ca5aa8e9fe5421
1 # Contributor: Sphax <zecmerquise@gmail.com>
2 pkgname=plasmoid-news-svn
3 pkgver=851741
4 pkgrel=1
5 pkgdesc="A plasmoid to display news from various sources"
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/news"
15 _svnmod="news"
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 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
40         mkdir cmake-build
41         cd cmake-build
42         cmake ../ \
43                 -DCMAKE_INSTALL_PREFIX=/usr \
44                 -DCMAKE_BUILD_TYPE=Release || return 1
45         make || return 1
46         make DESTDIR=$startdir/pkg install || return 1