Skip to content

Instantly share code, notes, and snippets.

@lichti
Created January 7, 2018 17:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lichti/2d7d14520e86ca96fd850a696579dc94 to your computer and use it in GitHub Desktop.
Save lichti/2d7d14520e86ca96fd850a696579dc94 to your computer and use it in GitHub Desktop.
Install flameshot
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