Skip to content

Instantly share code, notes, and snippets.

@whopiyush
Last active December 15, 2019 13:11
Show Gist options
  • Select an option

  • Save whopiyush/52dab56047cc25fa5f844d014ac9858e to your computer and use it in GitHub Desktop.

Select an option

Save whopiyush/52dab56047cc25fa5f844d014ac9858e to your computer and use it in GitHub Desktop.
A Shell Script To Install Kshare
#!/bin/sh
# Author : Piyush Bhangale (ionadev) <bhangalepiyush@gmail.com>
echo "This Script Will Install KShare."
echo "This Will Require GIT pre-installed."
echo "Installing Deps"
apt install build-essential qt5-qmake qtbase5-dev libavcodec-dev libavformat-dev libavutil-dev libswscale-dev libqt5svg5-dev libqt5x11extras5-dev libxcb-cursor-dev libxcb-util0-dev libxcb-xfixes0-dev pkg-config qt5-default
echo "Cloning The KShare Repository"
git clone https://gitlab.com/ArsenArsen/KShare.git -b dev --recursive
echo "Making build dir."
cd KShare
mkdir build
cd build
echo "Executing qmake"
qmake ..
echo "Executing make"
make
cd ..
echo "Directory Things"
cp build/src/kshare /usr/local/bin
mkdir -p /usr/local/{bin,share/{applications,pixmaps}}/
cp KShare.desktop /usr/local/share/applications
cp src/icons/icon.png /usr/local/share/pixmaps/KShare.png
exit 0

Installing

  • Make The File Executable chmod +x install_kshare.sh.
  • Excecute ./install_kshare.sh.

Post Installation


  • Execute nano KShare.desktop in KShare Directory.

  • Here, Replace /usr/bin/kshare with /usr/local/bin/kshare and /usr/share/pixmaps/KShare.png to /usr/local/share/pixmaps/KShare.png

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment