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) find_package(ECM 1.8.0 REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR}) 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(KDEInstallDirs)
include(KDECMakeSettings) 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. To install this plugin, you need before install plasma5, cmake and extra-cmake-modules.
On Arch Linux : On Arch Linux :
pacman -S --needed cmake extra-cmake-modules 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 : If install script is not executable, chmod it :
chmod 755 install chmod 755 install

View File

@ -6,14 +6,17 @@ cd build
installlibdir=$(dirname $(dirname $(find /usr -name plasma_containmentactions_applauncher.so))) installlibdir=$(dirname $(dirname $(find /usr -name plasma_containmentactions_applauncher.so)))
cmake -DKDE_INSTALL_LIBDIR=$installlibdir .. cmake -DKDE_INSTALL_LIBDIR=$installlibdir ..
#cmake -DKDE_INSTALL_LIBDIR=/usr/lib/qt ..
if [ ! "$?" = "0" ]; then if [ ! "$?" = "0" ]; then
echo "" echo ""
echo "" echo ""
echo "Error on cmake !" echo "Error on cmake !"
echo "Stop install" echo "Stop install"
echo "" 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 exit 1
fi 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 "On mouse actions, you can now choose Custom Desktop Menu."
echo "" echo ""
echo "If new menu is not available, logout/login your session." echo "If new menu is not available, logout/login your session."
echo ""
echo "OpenSuse need this two commands to finish install :"
#read -p "Logout now ? (Y/n)" choice echo "sudo mv /usr/local/share/kservices5/plasma-containmentactions-customdesktopmenu.desktop /usr/share/kservices5/plasma-containmentactions-customdesktopmenu.desktop"
#case "$choice" in echo "kbuildsyscoca5"
# y|Y|'' ) qdbus-qt4 org.kde.ksmserver /KSMServer logout -1 0 3;; echo ""
#esac echo ""
echo ""