From 1439a91be57d8a0a69a47bd4b884fcb74cf0ee91 Mon Sep 17 00:00:00 2001 From: MatMoul Date: Sun, 6 Sep 2015 17:26:58 +0200 Subject: [PATCH] Add install script --- src/install | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 src/install diff --git a/src/install b/src/install new file mode 100644 index 0000000..a0bf15f --- /dev/null +++ b/src/install @@ -0,0 +1,53 @@ +#!/bin/bash +rm -R -f build +mkdir build +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 ?" + exit 1 +fi + +make +if [ ! "$?" = "0" ]; then + echo "" + echo "" + echo "Error on make !" + echo "Stop install" + exit 1 +fi + +sudo make install +if [ ! "$?" = "0" ]; then + echo "" + echo "" + echo "Error on make install !" + echo "Stop install" + exit 1 +fi + +cd .. + +kbuildsycoca5 + +echo "" +echo "" +echo "Install Ready !" +echo "" +echo "If new menu is not available, logout 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 +