updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / plasmoid-coremoid / PKGBUILD
bloba48c2c9ec47f2335f496101eca5f95768f8718ca
1 # Contributor: Viliam Pucik <viliam dot pucik at gmail dot com>
3 pkgname=plasmoid-coremoid
4 pkgver=0.3.1
5 pkgrel=2
6 pkgdesc="KDE 4 Plasma applet to set cpufreq governor, display the CPU usage and the current clock rate on dynamic governors"
7 arch=('i686' 'x86_64')
8 url="http://kde-look.org/content/show.php/CoreMoid?content=72789"
9 license=('GPL')
10 depends=('kdebase-workspace')
11 makedepends=('gcc' 'cmake' 'automoc4')
12 source=(http://www.hirnfrei.org/~joerg/coremoid/coremoid-$pkgver.tar.bz2)
13 md5sums=('053307f6ea5ff5490793690ea38b92da')
15 build() {
16   cd $startdir/src/coremoid-$pkgver
18   # elsixdiab's fix for error: FindPlasma.cmake is deprecated
19   sed -i -e "s/find_package(Plasma REQUIRED)//" CMakeLists.txt
20   sed -i -e "s/PLASMA_LIBS/KDE4_PLASMA_LIBS/" CMakeLists.txt
21   # fix for error: ‘self’ is not a member of ‘Plasma::Theme’
22   sed -i -e "s|m_textColor = Plasma::Theme::self()->textColor();|m_textColor = Plasma::Theme::defaultTheme()->color(Plasma::Theme::TextColor);|g" coremoidapplet.cpp
23   sed -i -e "s|m_boxColor = Plasma::Theme::self()->backgroundColor();|m_boxColor = Plasma::Theme::defaultTheme()->color(Plasma::Theme::BackgroundColor);|g" coremoidapplet.cpp
24   
25   cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`
26   make || return 1
27   make DESTDIR=$pkgdir install