Image 01
profile-image

coloradolinux

Steve Maestas
countdown

Plasma 4 Extensions by andersin 18 comments

I couldn't get the patch working so I made my own.

--- CMakeLists.txt.orig 2010-01-19 23:45:13.000000000 -0600
+++ CMakeLists.txt 2010-01-19 23:42:13.000000000 -0600
@@ -4,7 +4,6 @@
# Find the required Libaries
find_package( KDE4 REQUIRED )
include( KDE4Defaults )
-find_package( Plasma REQUIRED )

add_definitions ( ${QT_DEFINITIONS} ${KDE4_DEFINITIONS} )
include_directories(
@@ -14,4 +13,13 @@
)

add_subdirectory( src )
-add_subdirectory( misc )
+add_subdirectory( misc )
+
+set(countdown_SRCS src/countdown.cpp)
+kde4_add_ui_files(countdown_SRCS src/countdownConfig.ui)
+
+kde4_add_plugin(plasma_applet_countdown ${countdown_SRCS})
+target_link_libraries(plasma_applet_countdown ${KDE4_PLASMA_LIBS} ${KDE4_KDEUI_LIBS})
+
+install(TARGETS plasma_applet_countdown DESTINATION ${PLUGIN_INSTALL_DIR})
+install(FILES misc/plasma-applet-countdown.desktop DESTINATION ${SERVICES_INSTALL_DIR})


patch the CMakeLists.txt under the plasmoid-countdown-0.2.2 directory. patch CMakeLists.txt < patch then run the following commands.

cd plasmoid-countdown-0.2.2
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ../
make
make install - Jan 20 2010