Compare commits
3 Commits
a34dda20c7
...
3c9f1d71cb
| Author | SHA1 | Date | |
|---|---|---|---|
|
3c9f1d71cb
|
|||
|
3a226ed5bb
|
|||
|
fe83b3eb25
|
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
|
||||||
#===============================================
|
#===============================================
|
||||||
|
|||||||
@@ -16,13 +16,13 @@ If some dependecies are missed for some of these scripts it is enougth to run `.
|
|||||||
|
|
||||||
```shell
|
```shell
|
||||||
# with git
|
# with git
|
||||||
git clone git@git.axenov.dev:anthony/my-env.git --depth=1 --single-branch
|
git clone git@git.axenov.dev:anthony/shell.git --depth=1 --single-branch
|
||||||
|
|
||||||
# without git
|
# without git
|
||||||
wget -qO - https://git.axenov.dev/anthony/my-env/archive/master.tar.gz | tar -zxf -
|
wget -qO - https://git.axenov.dev/anthony/shell/archive/master.tar.gz | tar -zxf -
|
||||||
|
|
||||||
# get full list of `make` goals
|
# get full list of `make` goals
|
||||||
cd my-env && make
|
cd shell && make
|
||||||
```
|
```
|
||||||
|
|
||||||
## How to add my script?
|
## How to add my script?
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
_dir=$( dirname $(readlink -e -- "${BASH_SOURCE}"))
|
_dir=$( dirname $(readlink -e -- "${BASH_SOURCE}"))
|
||||||
source $_dir/io.sh || exit 255
|
source "$_dir/io.sh" || exit 255
|
||||||
source $_dir/basic.sh || exit 255
|
source "$_dir/basic.sh" || exit 255
|
||||||
source $_dir/pkg.sh || exit 255
|
source "$_dir/pkg.sh" || exit 255
|
||||||
|
|
||||||
########################################################
|
########################################################
|
||||||
# Shorthands for git
|
# Shorthands for git
|
||||||
@@ -10,7 +10,7 @@ source $_dir/pkg.sh || exit 255
|
|||||||
|
|
||||||
git.clone_quick() {
|
git.clone_quick() {
|
||||||
require git
|
require git
|
||||||
git clone --depth=1 --single-branch $*
|
git clone --depth=1 --single-branch "$*"
|
||||||
}
|
}
|
||||||
|
|
||||||
git.is_repo() {
|
git.is_repo() {
|
||||||
@@ -64,12 +64,12 @@ git.reset() {
|
|||||||
|
|
||||||
git.clone() {
|
git.clone() {
|
||||||
require git
|
require git
|
||||||
git clone $* 2>&1
|
git clone "$*" 2>&1
|
||||||
}
|
}
|
||||||
|
|
||||||
git.co() {
|
git.co() {
|
||||||
require git
|
require git
|
||||||
git checkout $* 2>&1
|
git checkout "$*" 2>&1
|
||||||
}
|
}
|
||||||
|
|
||||||
git.is_it_current_branch() {
|
git.is_it_current_branch() {
|
||||||
|
|||||||
@@ -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