Temp fix for kactivities

This commit is contained in:
Manuel 2012-06-09 20:05:59 +00:00
parent be39153e82
commit e1659eafec
3 changed files with 22 additions and 5 deletions

View File

@ -0,0 +1,11 @@
--- a/lib/KActivitiesConfig.cmake.in
+++ b/lib/KActivitiesConfig.cmake.in
@@ -1,6 +1,8 @@
get_filename_component(myDir ${CMAKE_CURRENT_LIST_FILE} PATH) # get the directory where I myself am
get_filename_component(rootDir ${myDir}/@relInstallDir@ ABSOLUTE) # get the chosen install prefix
+set(KACTIVITIES_FOUND TRUE)
+
# set the version of myself
set(KACTIVITIES_VERSION_MAJOR @KACTIVITIES_LIB_MAJOR_VERSION@)
set(KACTIVITIES_VERSION_MINOR @KACTIVITIES_LIB_MINOR_VERSION@)

View File

@ -23,19 +23,21 @@ md5sums=(`grep ${pkgname}-$_kdever.tar.xz ../kde-sc.md5 | cut -d" " -f1`)
build() {
cd "${srcdir}"
cd "${srcdir}/${pkgname}-${pkgver}"
patch -p1 -i ${startdir}/FindKactivities.patch
rm -rf build
mkdir build && cd build
cmake ../${pkgname}-${pkgver} \
cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr
make
}
package() {
cd $srcdir/build
cd $srcdir/$pkgname-$pkgver/build
make DESTDIR=$pkgdir install
}

View File

@ -31,10 +31,13 @@ noextract=(branding.svgz)
source=($_mirror/${pkgname}-$_kdever.tar.xz
branding.svgz
01_disable_logout_sound.patch)
01_disable_logout_sound.patch
FindKactivities.patch)
md5sums=(`grep ${pkgname}-$_kdever.tar.xz ../kde-sc.md5 | cut -d" " -f1`
'68cd8eb57db22c2f2ed554b721253bc2' # branding.svgz
'a434bf282ee391b2f857184be59a3b6f') # 01_disable_logout_sound.patch
'a434bf282ee391b2f857184be59a3b6f' # 01_disable_logout_sound.patch
'259d02a6fc6a1e2aa8ade4558250e9e4') # FIndKactivities.patch
#
# build function
@ -44,6 +47,7 @@ build() {
msg "applying main patchset ..."
patch -Np1 -i ${srcdir}/01_disable_logout_sound.patch
patch -p1 -i ${srcdir}/FindKactivities.patch
# copy our branding stuff
cp -f ${srcdir}/branding.svgz ${srcdir}/${pkgname}-${pkgver}/desktoptheme/oxygen/widgets/