flameshot build form src
This commit is contained in:
13
Makefile
13
Makefile
@@ -1,4 +1,4 @@
|
|||||||
# Autogenerated at 09.01.2025 15:37 using ./gen-makefile
|
# Autogenerated at 24.03.2025 19:24 using ./gen-makefile
|
||||||
.DEFAULT_GOAL := help
|
.DEFAULT_GOAL := help
|
||||||
|
|
||||||
#===============================================
|
#===============================================
|
||||||
@@ -21,6 +21,10 @@ canon-mg2500:
|
|||||||
chrome:
|
chrome:
|
||||||
@./install/chrome
|
@./install/chrome
|
||||||
|
|
||||||
|
##clamav: ClamAV (WIP)
|
||||||
|
clamav:
|
||||||
|
@./install/clamav
|
||||||
|
|
||||||
##composer: Install composer (latest)
|
##composer: Install composer (latest)
|
||||||
composer:
|
composer:
|
||||||
@./install/composer
|
@./install/composer
|
||||||
@@ -230,9 +234,6 @@ zsh:
|
|||||||
# Scripts listed in ./packs
|
# Scripts listed in ./packs
|
||||||
#===============================================
|
#===============================================
|
||||||
|
|
||||||
##flameshot: [TODO] [PACK] qt5 + flameshot from source
|
|
||||||
flameshot: qt5 flameshot-build
|
|
||||||
|
|
||||||
##lamp: [PACK] Apache + php + mariadb
|
##lamp: [PACK] Apache + php + mariadb
|
||||||
lamp: apache phpstack mariadb
|
lamp: apache phpstack mariadb
|
||||||
|
|
||||||
@@ -310,6 +311,10 @@ phpstack: php phptools
|
|||||||
/vivaldi:
|
/vivaldi:
|
||||||
@./uninstall/vivaldi
|
@./uninstall/vivaldi
|
||||||
|
|
||||||
|
##/wine: Uninstall wine
|
||||||
|
/wine:
|
||||||
|
@./uninstall/wine
|
||||||
|
|
||||||
#===============================================
|
#===============================================
|
||||||
# Service goals
|
# Service goals
|
||||||
#===============================================
|
#===============================================
|
||||||
|
|||||||
@@ -4,12 +4,51 @@ source "$( dirname $(readlink -e -- "${BASH_SOURCE}"))/../helpers.sh" || exit 25
|
|||||||
|
|
||||||
title
|
title
|
||||||
|
|
||||||
sudo apt install -y --autoremove flameshot && \
|
# https://github.com/flameshot-org/flameshot?tab=readme-ov-file#compilation
|
||||||
sudo systemctl restart flameshot
|
# sudo apt install -y --autoremove flameshot && \
|
||||||
|
# sudo systemctl restart flameshot
|
||||||
|
|
||||||
|
dir="$HOME/install"
|
||||||
|
clone_dir="$dir/flameshot"
|
||||||
|
mkdir -p "$dir"
|
||||||
|
|
||||||
|
sudo apt install -y \
|
||||||
|
g++ \
|
||||||
|
cmake \
|
||||||
|
build-essential \
|
||||||
|
qtbase5-dev \
|
||||||
|
qttools5-dev-tools \
|
||||||
|
libqt5svg5-dev \
|
||||||
|
qttools5-dev \
|
||||||
|
libqt5dbus5 \
|
||||||
|
libqt5network5 \
|
||||||
|
libqt5core5a \
|
||||||
|
libqt5widgets5 \
|
||||||
|
libqt5gui5 \
|
||||||
|
libqt5svg5
|
||||||
|
|
||||||
|
if [ ! -d "$clone_dir" ]; then
|
||||||
|
git clone --depth=1 --single-branch https://github.com/flameshot-org/flameshot.git "$clone_dir"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Directory where build files will be placed, may be relative
|
||||||
|
export BUILD_DIR=build
|
||||||
|
|
||||||
|
# Directory prefix where flameshot will be installed. If you are just building and don't want to
|
||||||
|
# install, comment this environment variable.
|
||||||
|
# This excludes the bin/flameshot part of the install,
|
||||||
|
# e.g. in /opt/flameshot/bin/flameshot, the CMAKE_INSTALL_PREFIX is /opt/flameshot
|
||||||
|
# This must be an absolute path. Requires CMAKE 3.29.
|
||||||
|
export CMAKE_INSTALL_PREFIX=/opt/flameshot
|
||||||
|
|
||||||
|
cd "$clone_dir" && \
|
||||||
|
git pull && \
|
||||||
|
cmake -S . -B "$BUILD_DIR" && \
|
||||||
|
cmake --build "$BUILD_DIR"
|
||||||
|
|
||||||
[ $? = 0 ] && {
|
[ $? = 0 ] && {
|
||||||
echo
|
echo
|
||||||
success "flameshot installed!"
|
success "flameshot installed!"
|
||||||
flameshot -v
|
# /opt/flameshot/flameshot -v
|
||||||
echo
|
echo
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,2 +0,0 @@
|
|||||||
##flameshot: [TODO] [PACK] qt5 + flameshot from source
|
|
||||||
flameshot: qt5 flameshot-build
|
|
||||||
Reference in New Issue
Block a user