initial commit
This commit is contained in:
commit
77305bdfab
40
PKGBUILD
Normal file
40
PKGBUILD
Normal file
@ -0,0 +1,40 @@
|
||||
pkgname=tarch-sddm-theme-corners
|
||||
pkgver=1
|
||||
pkgrel=1
|
||||
pkgdesc="Theme for SDDM that puts stuff on the corners of the screen, for Tarch OS."
|
||||
arch=("any")
|
||||
url="https://github.com/aczw/sddm-theme-corners"
|
||||
license=("GPL3")
|
||||
|
||||
depends=(
|
||||
"sddm"
|
||||
"qt5-graphicaleffects"
|
||||
"qt5-svg"
|
||||
"qt5-quickcontrols2"
|
||||
)
|
||||
|
||||
makedepends=("git")
|
||||
backup=("usr/share/sddm/themes/corners/theme.conf")
|
||||
source=("git+https://github.com/aczw/sddm-theme-corners.git")
|
||||
sha256sums=("SKIP")
|
||||
|
||||
conflicts=(
|
||||
"sddm-theme-corners-git"
|
||||
"sddm-theme-corners"
|
||||
)
|
||||
|
||||
provides=(
|
||||
"sddm-theme-corners-git"
|
||||
"sddm-theme-corners"
|
||||
)
|
||||
|
||||
pkgver() {
|
||||
cd "${srcdir}/sddm-theme-corners"
|
||||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/sddm-theme-corners"
|
||||
mkdir -p "${pkgdir}/usr/share/sddm/themes/"
|
||||
cp -r corners/ "${pkgdir}/usr/share/sddm/themes/"
|
||||
}
|
59
makepkg.sh
Executable file
59
makepkg.sh
Executable file
@ -0,0 +1,59 @@
|
||||
#!/bin/bash
|
||||
|
||||
source "$HOME/bin/scripts/system/style"
|
||||
|
||||
BUILDING_DIR="build"
|
||||
|
||||
# Script Termination #
|
||||
exit_on_signal_SIGINT () {
|
||||
{ printf "\n\n%s\n" "Script interrupted." 2>&1; echo; }
|
||||
exit 0
|
||||
}
|
||||
|
||||
exit_on_signal_SIGTERM () {
|
||||
{ printf "\n\n%s\n" "Script terminated." 2>&1; echo; }
|
||||
exit 0
|
||||
}
|
||||
|
||||
# Этот скрипт устанавливает ловушку (trap) для сигнала SIGINT и SIGTERM.
|
||||
# Когда скрипт получает сигнал SIGINT (например, когда пользователь нажимает Ctrl+C), он будет вызывать функцию
|
||||
trap exit_on_signal_SIGINT SIGINT
|
||||
trap exit_on_signal_SIGTERM SIGTERM
|
||||
|
||||
CLEANINH_BUILDING_DIR (){
|
||||
cd ..
|
||||
rm -rf ${BUILDING_DIR}
|
||||
sleep 0.5
|
||||
}
|
||||
|
||||
BUILD_PKG () {
|
||||
echo -e "\n ${BOLD}${GREEN}[+] создаем дирректорию сборки... ${RESET_COLOR}"
|
||||
mkdir -p ${BUILDING_DIR}
|
||||
sleep 0.5
|
||||
|
||||
echo -e "\n ${CYAN} ==> копируем файлы в дирректорию сборки... ${RESET_COLOR}"
|
||||
cp -r `ls | grep -v '^build$'` ${BUILDING_DIR}
|
||||
sleep 0.5
|
||||
|
||||
echo -e "\n ${CYAN} ==> копируем файлы в дирректорию сборки... ${RESET_COLOR}"
|
||||
cd ${BUILDING_DIR}
|
||||
sleep 0.5
|
||||
|
||||
# Building #
|
||||
echo -e "\n ${CYAN}[+] собираем пакет... ${RESET_COLOR}"
|
||||
makepkg -s -f
|
||||
sleep 0.5
|
||||
|
||||
if ls *.pkg.tar.zst 1> /dev/null 2>&1; then
|
||||
echo -e "\n ${CYAN}[+] переносим пакеты и очищаем дирректорию... ${RESET_COLOR}"
|
||||
mv ./*.pkg.tar.zst ../../tarch-bin/x86_64/
|
||||
sleep 0.5
|
||||
CLEANINH_BUILDING_DIR
|
||||
echo -e "\n ${BOLD}${GREEN}[✔] завершено... ${RESET_COLOR}"
|
||||
else
|
||||
echo -e "\n ${BOLD}${RED}[✘] сборка не удалась... ${RESET_COLOR}"
|
||||
fi
|
||||
echo -e "\n"
|
||||
}
|
||||
|
||||
BUILD_PKG
|
Loading…
Reference in New Issue
Block a user