1
0

Add OpenSuse support

This commit is contained in:
MatMoul 2016-01-20 13:30:24 +01:00
parent 2faa57935a
commit b896368e6e
3 changed files with 19 additions and 11 deletions

View File

@ -6,7 +6,7 @@ find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS Widgets)
find_package(ECM 1.8.0 REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS Plasma KDELibs4Support)
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS Plasma KIO)
include(KDEInstallDirs)
include(KDECMakeSettings)

View File

@ -1,9 +1,14 @@
At this time, this plugin was tested on Arch Linux with Plasma 5
At this time, this plugin was tested on Arch Linux and OpenSuse with Plasma 5
To install this plugin, you need before install plasma5, cmake and extra-cmake-modules.
On Arch Linux :
pacman -S --needed cmake extra-cmake-modules
On Suse :
zypper in cmake extra-cmake-modules
zypper in libqt5-qtbase-devel plasma5-workspace-devel plasma-framework-devel kio-devel
If install script is not executable, chmod it :
chmod 755 install

View File

@ -6,14 +6,17 @@ cd build
installlibdir=$(dirname $(dirname $(find /usr -name plasma_containmentactions_applauncher.so)))
cmake -DKDE_INSTALL_LIBDIR=$installlibdir ..
#cmake -DKDE_INSTALL_LIBDIR=/usr/lib/qt ..
if [ ! "$?" = "0" ]; then
echo ""
echo ""
echo "Error on cmake !"
echo "Stop install"
echo ""
echo "Have you installed cmake and extra-cmake-modules ?"
echo "Have you installed dependencies ?"
echo "Arch Linux :"
echo "pacman -S --needed cmake extra-cmake-modules"
echo "OpenSuse :"
echo "zypper in cmake extra-cmake-modules libqt5-qtbase-devel plasma5-workspace-devel plasma-framework-devel kio-devel"
exit 1
fi
@ -47,10 +50,10 @@ echo "Right click to your desktop and select Desktop Settings."
echo "On mouse actions, you can now choose Custom Desktop Menu."
echo ""
echo "If new menu is not available, logout/login your session."
#read -p "Logout now ? (Y/n)" choice
#case "$choice" in
# y|Y|'' ) qdbus-qt4 org.kde.ksmserver /KSMServer logout -1 0 3;;
#esac
echo ""
echo "OpenSuse need this two commands to finish install :"
echo "sudo mv /usr/local/share/kservices5/plasma-containmentactions-customdesktopmenu.desktop /usr/share/kservices5/plasma-containmentactions-customdesktopmenu.desktop"
echo "kbuildsyscoca5"
echo ""
echo ""
echo ""