Initial commit
This commit is contained in:
commit
f918177309
7 changed files with 821 additions and 0 deletions
56
qt6-rebuild
Executable file
56
qt6-rebuild
Executable file
|
|
@ -0,0 +1,56 @@
|
|||
#!/bin/bash
|
||||
|
||||
# SPDX-FileCopyrightText: Christian Schendel
|
||||
# SPDX-License-Identifier: 0BSD
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
COLOR_NOTE="\e[1;36m==>\e[0m"
|
||||
COLOR_OK="\e[1;32m==>\e[0m"
|
||||
COLOR_ERROR="\e[1;31m==>\e[0m"
|
||||
COLOR_WARNING="\e[1;35m==>\e[0m"
|
||||
|
||||
show_cursor() {
|
||||
tput cnorm
|
||||
exit
|
||||
}
|
||||
|
||||
hide_cursor() {
|
||||
tput civis
|
||||
}
|
||||
|
||||
trap show_cursor INT TERM
|
||||
hide_cursor
|
||||
|
||||
packages=(
|
||||
ausweisapp2
|
||||
bluejay
|
||||
cantata-qt6
|
||||
hyprsysteminfo
|
||||
iwqt
|
||||
klassy
|
||||
koi
|
||||
kwin-effects-forceblur
|
||||
qt6ct-kde
|
||||
sddm-black-screen-fix
|
||||
)
|
||||
|
||||
update_pkgrel() {
|
||||
for pkgbuild in "${packages[@]}"; do
|
||||
awk -i inplace -v FS='=' -v OFS='=' '$1=="pkgrel"{$2++} {print}' "$pkgbuild/PKGBUILD"
|
||||
echo -e "$COLOR_NOTE pkgrel for $pkgbuild incremented by 1..."
|
||||
done
|
||||
}
|
||||
|
||||
build_package() {
|
||||
for pkgbuild in "${packages[@]}"; do
|
||||
pushd "$pkgbuild"
|
||||
./chroot-build
|
||||
popd
|
||||
done
|
||||
}
|
||||
|
||||
update_pkgrel
|
||||
build_package
|
||||
echo -e "\b$COLOR_OK Done!"
|
||||
show_cursor
|
||||
Loading…
Add table
Add a link
Reference in a new issue