Created
January 7, 2018 17:54
-
-
Save lichti/2d7d14520e86ca96fd850a696579dc94 to your computer and use it in GitHub Desktop.
Install flameshot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GIT_URL=https://github.com/lupoDharkael/flameshot.git | |
GIT_BRANCH=v0.5.0 | |
SRC_DIR=$(mktemp -d) | |
BIN_DIR=/usr/bin | |
xPWD=$(pwd) | |
sudo apt update \ | |
&& sudo apt install -y git g++ build-essential qt5-qmake qt5-default qttools5-dev-tools \ | |
&& sudo apt install -y libqt5dbus5 libqt5network5 libqt5core5a libqt5widgets5 libqt5gui5 openssl ca-certificates \ | |
&& cd ${SRC_DIR} \ | |
&& git clone $GIT_URL flameshot --branch $GIT_BRANCH \ | |
&& cd flameshot \ | |
&& qmake \ | |
&& make -j 3 \ | |
&& sudo make install \ | |
&& sudo ln -sf /usr/local/bin/flameshot ${BIN_DIR}/flameshot | |
rm -rf ${SRC_DIR} | |
cd $xPWD | |
echo -e "\n\Flameshot Installed\n\n" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment