From af5fe581cb81e5408fd8b221e50189a125bcc46b Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Wed, 2 Sep 2015 09:55:57 +0200 Subject: Several applications need tweaks in their pre-install or post-install stage --- kde/post-install/akonadi4.post-install | 5 +++++ kde/post-install/kdepimlibs4.post-install | 3 +++ kde/pre-install/kde-runtime.pre-install | 8 ++++++++ kde/pre-install/kdepimlibs4.pre-install | 7 +++++++ kde/pre-install/smokekde.pre-install | 7 +++++++ 5 files changed, 30 insertions(+) create mode 100644 kde/post-install/akonadi4.post-install create mode 100644 kde/post-install/kdepimlibs4.post-install create mode 100644 kde/pre-install/kde-runtime.pre-install create mode 100644 kde/pre-install/kdepimlibs4.pre-install create mode 100644 kde/pre-install/smokekde.pre-install (limited to 'kde') diff --git a/kde/post-install/akonadi4.post-install b/kde/post-install/akonadi4.post-install new file mode 100644 index 0000000..6115cf3 --- /dev/null +++ b/kde/post-install/akonadi4.post-install @@ -0,0 +1,5 @@ +# Remove files that clash with the Frameworks version of akonadi; +# we need only the barebones of the old akonadi 0.x for kdepimlibs4: +#rm -r $PKG/usr/{bin,share} +rm -r $PKG/usr/bin + diff --git a/kde/post-install/kdepimlibs4.post-install b/kde/post-install/kdepimlibs4.post-install new file mode 100644 index 0000000..ae30cc8 --- /dev/null +++ b/kde/post-install/kdepimlibs4.post-install @@ -0,0 +1,3 @@ +# Remove files that clash with the Frameworks version of kdepimlibs: +rm -r $PKG/usr/bin +rm -r $PKG/usr/share/config.kcfg diff --git a/kde/pre-install/kde-runtime.pre-install b/kde/pre-install/kde-runtime.pre-install new file mode 100644 index 0000000..c32e2ce --- /dev/null +++ b/kde/pre-install/kde-runtime.pre-install @@ -0,0 +1,8 @@ +# For some reason, cmake stumbles over identical directory names in +# doc/kcontrol and doc/kioslave +sed -i \ + -e "s/add_subdirectory(bookmarks)/add_subdirectory(kiobookmarks)/" \ + -e "s/add_subdirectory(smb)/add_subdirectory(kiosmb)/" \ + doc/kioslave/CMakeLists.txt +mv -i doc/kioslave/{,kio}bookmarks +mv -i doc/kioslave/{,kio}smb diff --git a/kde/pre-install/kdepimlibs4.pre-install b/kde/pre-install/kdepimlibs4.pre-install new file mode 100644 index 0000000..a663cc6 --- /dev/null +++ b/kde/pre-install/kdepimlibs4.pre-install @@ -0,0 +1,7 @@ +# Temporary (hopefully) fix: +if ! grep -q 'cmake_minimum_required' CMakeLists.txt ; then + # Prepend a cmake_minimum_required stanza at the top, which enables + # newer cmake features which the build needs: + sed -i -e '1icmake_minimum_required(VERSION 2.8.9)\' CMakeLists.txt +fi + diff --git a/kde/pre-install/smokekde.pre-install b/kde/pre-install/smokekde.pre-install new file mode 100644 index 0000000..a663cc6 --- /dev/null +++ b/kde/pre-install/smokekde.pre-install @@ -0,0 +1,7 @@ +# Temporary (hopefully) fix: +if ! grep -q 'cmake_minimum_required' CMakeLists.txt ; then + # Prepend a cmake_minimum_required stanza at the top, which enables + # newer cmake features which the build needs: + sed -i -e '1icmake_minimum_required(VERSION 2.8.9)\' CMakeLists.txt +fi + -- cgit v1.2.3