1 # Contributor: Viliam Pucik <viliam dot pucik at gmail dot com>
3 pkgname=plasmoid-coremoid
6 pkgdesc="KDE 4 Plasma applet to set cpufreq governor, display the CPU usage and the current clock rate on dynamic governors"
8 url="http://kde-look.org/content/show.php/CoreMoid?content=72789"
10 depends=('kdebase-workspace')
11 makedepends=('gcc' 'cmake' 'automoc4')
12 source=(http://www.hirnfrei.org/~joerg/coremoid/coremoid-$pkgver.tar.bz2)
13 md5sums=('053307f6ea5ff5490793690ea38b92da')
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
25 cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`
27 make DESTDIR=$pkgdir install