diff options
author | Eric Hameleers <alien@slackware.com> | 2014-12-22 15:23:54 +0100 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2014-12-22 15:23:54 +0100 |
commit | b1b35d20ce6b70330b23a9d056dcb44b58795bd6 (patch) | |
tree | d393ca76dae97b64e8de58184a15f60ca1a7412a /kde/post-install | |
parent | f0e6e91722ec10bf7aa6a4bf53d1aedd8aee4c74 (diff) | |
download | ktown-b1b35d20ce6b70330b23a9d056dcb44b58795bd6.tar.gz ktown-b1b35d20ce6b70330b23a9d056dcb44b58795bd6.tar.xz |
KDE 5 for Slackware current (post-14.1) (16sep2014)5
The KDE 5 Software Compilation no longer exists as such.
The components are now:
- Frameworks 5.2.0
- Plasma 5.0.2
These packages need to be installed on top of the most recent KDE 4.14.x
because Applications tarballs which build on top of Frameworks and
Plasma have not yet been released.
Diffstat (limited to 'kde/post-install')
-rw-r--r-- | kde/post-install/baloo5.post-install | 5 | ||||
-rw-r--r-- | kde/post-install/kauth.post-install | 2 | ||||
-rw-r--r-- | kde/post-install/kdelibs4support.post-install | 5 | ||||
-rw-r--r-- | kde/post-install/kwallet.post-install | 2 | ||||
-rwxr-xr-x | kde/post-install/oxygen-fonts.post-install | 5 | ||||
-rw-r--r-- | kde/post-install/plasma-desktop.post-install | 4 | ||||
-rw-r--r-- | kde/post-install/plasma-workspace.post-install | 41 | ||||
-rw-r--r-- | kde/post-install/plasma-workspace/xinit/xinitrc.plasma | 45 | ||||
-rw-r--r-- | kde/post-install/plasma-workspace/xsession/kde5-plasma-safe.desktop | 7 | ||||
-rw-r--r-- | kde/post-install/plasma-workspace/xsession/kde5-plasma.desktop | 7 | ||||
-rw-r--r-- | kde/post-install/plasma-workspace/xsession/kde5init | 16 | ||||
-rw-r--r-- | kde/post-install/powerdevil.post-install | 4 | ||||
-rw-r--r-- | kde/post-install/sddm-qt5.post-install | 11 |
13 files changed, 154 insertions, 0 deletions
diff --git a/kde/post-install/baloo5.post-install b/kde/post-install/baloo5.post-install new file mode 100644 index 0000000..9ef28c9 --- /dev/null +++ b/kde/post-install/baloo5.post-install @@ -0,0 +1,5 @@ +# Move the polkit dbus configuration files to the proper place: +#mv $PKG/etc/kde/dbus-1 $PKG/etc/ +mkdir -p $PKG/etc +mv $PKG/opt/kf5/etc/dbus-1 $PKG/etc/ + diff --git a/kde/post-install/kauth.post-install b/kde/post-install/kauth.post-install new file mode 100644 index 0000000..9239a3e --- /dev/null +++ b/kde/post-install/kauth.post-install @@ -0,0 +1,2 @@ +# Move the polkit dbus configuration files to the proper place: +mv $PKG/etc/kde/dbus-1 $PKG/etc/ diff --git a/kde/post-install/kdelibs4support.post-install b/kde/post-install/kdelibs4support.post-install new file mode 100644 index 0000000..c91513e --- /dev/null +++ b/kde/post-install/kdelibs4support.post-install @@ -0,0 +1,5 @@ +# This file causes errors in lots of packages, like: +# "no rule to make target ../po/it/PO_FILES" +# (now fixed with a patch) +#mv $PKG/usr/lib$LIBDIRSUFFIX/cmake/KF5KDELibs4Support/FindGettext.cmake{,.fail} + diff --git a/kde/post-install/kwallet.post-install b/kde/post-install/kwallet.post-install new file mode 100644 index 0000000..9239a3e --- /dev/null +++ b/kde/post-install/kwallet.post-install @@ -0,0 +1,2 @@ +# Move the polkit dbus configuration files to the proper place: +mv $PKG/etc/kde/dbus-1 $PKG/etc/ diff --git a/kde/post-install/oxygen-fonts.post-install b/kde/post-install/oxygen-fonts.post-install new file mode 100755 index 0000000..0b23495 --- /dev/null +++ b/kde/post-install/oxygen-fonts.post-install @@ -0,0 +1,5 @@ +# Install fonts: +FONTSDIR=/opt/kf5/share/fonts/oxygen +mkdir -p $PKG/$FONTSDIR +find . -name "*.ttf" -exec install -m644 {} $PKG/$FONTSDIR \; + diff --git a/kde/post-install/plasma-desktop.post-install b/kde/post-install/plasma-desktop.post-install new file mode 100644 index 0000000..1a86dad --- /dev/null +++ b/kde/post-install/plasma-desktop.post-install @@ -0,0 +1,4 @@ +# Move the polkit dbus configuration files to the proper place: +mkdir -p $PKG/etc +mv $PKG/opt/kf5//etc/dbus-1 $PKG/etc/ + diff --git a/kde/post-install/plasma-workspace.post-install b/kde/post-install/plasma-workspace.post-install new file mode 100644 index 0000000..6adbcb6 --- /dev/null +++ b/kde/post-install/plasma-workspace.post-install @@ -0,0 +1,41 @@ + +# Use ck-launch-session in runlevel 3, +# to start and attach a ConsoleKit session to the X session: +mkdir -p $PKG/etc/X11/xinit +cat $CWD/post-install/plasma-workspace/xinit/xinitrc.plasma \ + | sed -e "s/@LIBDIRSUFFIX@/$LIBDIRSUFFIX/g" \ + > $PKG/etc/X11/xinit/xinitrc.plasma +chmod 0755 $PKG/etc/X11/xinit/xinitrc.plasma + +# Fix a path in the startkde script: +sed -e 's,/opt/kf5/lib64/libexec/kf5/start_kdeinit_wrapper,/usr/lib64/libexec/kf5/start_kdeinit_wrapper,' -i $PKG/opt/kf5/bin/startkde + +# Allow other login managers to show KDE Plasma2 desktop sessions: +mkdir -p $PKG/usr/share/xsessions +cat $CWD/post-install/plasma-workspace/xsession/kde5-plasma.desktop \ + | sed -e "s,@PREFIX@,/opt/kf5,g" \ + > $PKG/usr/share/xsessions/kde5-plasma.desktop +cat $CWD/post-install/plasma-workspace/xsession/kde5-plasma-safe.desktop \ + | sed -e "s,@PREFIX@,/opt/kf5,g" \ + > $PKG/usr/share/xsessions/kde5-plasma-safe.desktop +mkdir -p $PKG/opt/kf5/bin +cat $CWD/post-install/plasma-workspace/xsession/kde5init \ + | sed -e "s,@PREFIX@,/opt/kf5,g" \ + -e "s,@LIBDIRSUFFIX@,$LIBDIRSUFFIX,g" \ + > $PKG/opt/kf5/bin/kde5init +chmod 755 $PKG/opt/kf5/bin/kde5init + +# What is "plugins/plugins"? +mv $PKG/opt/kf5/lib64/qt5/plugins/{plugins,}/phonon_platform +rmdir $PKG/opt/kf5/lib64/qt5/plugins/plugins + +# Move the polkit dbus configuration files to the proper place: +mkdir -p $PKG/etc +mv $PKG/opt/kf5//etc/dbus-1 $PKG/etc/ + +# Create a utility symlink - required on x86 but not on x86_64 ??? +ln -s /usr/lib${LIBDIRSUFFIX}/libexec/kf5 $PKG/opt/kf5/lib${LIBDIRSUFFIX}/libexec/ + +# For shadow, this file needs to be setuid root just like the KDE4 version: +chmod +s $PKG/opt/kf5/lib$LIBDIRSUFFIX/libexec/kcheckpass + diff --git a/kde/post-install/plasma-workspace/xinit/xinitrc.plasma b/kde/post-install/plasma-workspace/xinit/xinitrc.plasma new file mode 100644 index 0000000..18fd622 --- /dev/null +++ b/kde/post-install/plasma-workspace/xinit/xinitrc.plasma @@ -0,0 +1,45 @@ +#!/bin/sh +# $XConsortium: xinitrc.cpp,v 1.4 91/08/22 11:41:34 rws Exp $ + +userresources=$HOME/.Xresources +usermodmap=$HOME/.Xmodmap +sysresources=/etc/X11/xinit/.Xresources +sysmodmap=/etc/X11/xinit/.Xmodmap + +# merge in defaults and keymaps + +if [ -f $sysresources ]; then + xrdb -merge $sysresources +fi + +if [ -f $sysmodmap ]; then + xmodmap $sysmodmap +fi + +if [ -f $userresources ]; then + xrdb -merge $userresources +fi + +if [ -f $usermodmap ]; then + xmodmap $usermodmap +fi + +# KDE Frameworks 5 plus Plasma Next: +export KF5=/opt/kf5 +export PATH=$KF5/bin:$KF5/lib@LIBDIRSUFFIX@/qt5/bin:$PATH +export QML2_IMPORT_PATH=$KF5/lib@LIBDIRSUFFIX@/qt5/qml:/usr/lib@LIBDIRSUFFIX@/qt5/qml +export QT_PLUGIN_PATH=$KF5/lib@LIBDIRSUFFIX@/qt5/plugins:/usr/lib@LIBDIRSUFFIX@/qt5/plugins +export XDG_CONFIG_DIRS=$KF5/etc/xdg:/etc/xdg:/etc/kde/xdg +export XDG_DATA_DIRS=$KF5/share:/usr/share:/usr/local/share + +export XDG_DATA_HOME="$HOME/.local5" +export XDG_CONFIG_HOME="$HOME/.config5" +export XDG_CACHE_HOME="$HOME/.cache5" +export KDEHOME="$HOME/.kde5" + +# Start the window manager: +if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then + ck-launch-session startkde +else + startkde +fi diff --git a/kde/post-install/plasma-workspace/xsession/kde5-plasma-safe.desktop b/kde/post-install/plasma-workspace/xsession/kde5-plasma-safe.desktop new file mode 100644 index 0000000..8119a6c --- /dev/null +++ b/kde/post-install/plasma-workspace/xsession/kde5-plasma-safe.desktop @@ -0,0 +1,7 @@ +[Desktop Entry] +Encoding=UTF-8 +Type=XSession +Exec=@PREFIX@/bin/kde5init --failsafe +TryExec=@PREFIX@/bin/kde5init +Name=KDE Plasma 5 (fail safe session) +Comment=The next generation KDE desktop (fail safe session) diff --git a/kde/post-install/plasma-workspace/xsession/kde5-plasma.desktop b/kde/post-install/plasma-workspace/xsession/kde5-plasma.desktop new file mode 100644 index 0000000..af43fe7 --- /dev/null +++ b/kde/post-install/plasma-workspace/xsession/kde5-plasma.desktop @@ -0,0 +1,7 @@ +[Desktop Entry] +Encoding=UTF-8 +Type=XSession +Exec=@PREFIX@/bin/kde5init +TryExec=@PREFIX@/bin/kde5init +Name=KDE Plasma 5 +Comment=The next generation KDE desktop diff --git a/kde/post-install/plasma-workspace/xsession/kde5init b/kde/post-install/plasma-workspace/xsession/kde5init new file mode 100644 index 0000000..75fb697 --- /dev/null +++ b/kde/post-install/plasma-workspace/xsession/kde5init @@ -0,0 +1,16 @@ +# KDE Frameworks 5 plus Plasma Next: +export KF5=@PREFIX@ +export PATH=$KF5/bin:$KF5/lib@LIBDIRSUFFIX@/qt5/bin:$PATH +export QML2_IMPORT_PATH=$KF5/lib@LIBDIRSUFFIX@/qt5/qml:/usr/lib@LIBDIRSUFFIX@/qt5/qml +export QT_PLUGIN_PATH=$KF5/lib@LIBDIRSUFFIX@/qt5/plugins:/usr/lib@LIBDIRSUFFIX@/qt5/plugins +export XDG_CONFIG_DIRS=$KF5/etc/xdg:/etc/xdg:/etc/kde/xdg +export XDG_DATA_DIRS=$KF5/share:/usr/share:/usr/local/share + +export XDG_DATA_HOME="$HOME/.local5" +export XDG_CONFIG_HOME="$HOME/.config5" +export XDG_CACHE_HOME="$HOME/.cache5" +export KDEHOME="$HOME/.kde5" + +# Start the window manager: +exec $KF5/bin/startkde "$*" + diff --git a/kde/post-install/powerdevil.post-install b/kde/post-install/powerdevil.post-install new file mode 100644 index 0000000..1a86dad --- /dev/null +++ b/kde/post-install/powerdevil.post-install @@ -0,0 +1,4 @@ +# Move the polkit dbus configuration files to the proper place: +mkdir -p $PKG/etc +mv $PKG/opt/kf5//etc/dbus-1 $PKG/etc/ + diff --git a/kde/post-install/sddm-qt5.post-install b/kde/post-install/sddm-qt5.post-install new file mode 100644 index 0000000..0bcecce --- /dev/null +++ b/kde/post-install/sddm-qt5.post-install @@ -0,0 +1,11 @@ +# Remove PAM related stuff: +rm -rf $PKG/etc/pam.d + +## Set the KDE4 theme 'elarun' as default, it gives the user more options: +#sed -i -e "s/^CurrentTheme.*/CurrentTheme=elarun/" $PKG/etc/sddm.conf +# Set the KDE5 theme 'breeze' as default, integrates better with Plasma 5: +sed -i -e "s/^CurrentTheme.*/CurrentTheme=breeze/" $PKG/etc/sddm.conf + +# Do not clobber existing configuration files: +mv $PKG/etc/sddm.conf{,.new} + |