This commit is contained in:
pika 2025-05-19 17:36:53 +02:00
parent e70b7bf60b
commit 01f065cbce

View file

@ -109,6 +109,13 @@ buildGraphics() {
}
cloneAndBuildGraphics() {
PACKAGE=hyprgraphics
if command_exists $PACKAGE; then
echo_error "hyprlang is already installed!"
return 69
fi
local cloneDir="$(mktemp -d)"
cd $cloneDir || mkdir -p "$cloneDir" && cd "$cloneDir"
@ -131,6 +138,13 @@ buildUtils() {
}
cloneAndBuildUtils() {
PACKAGE=hyprutils
if command_exists $PACKAGE; then
echo_error "hyprlang is already installed!"
return 69
fi
local cloneDirUtils="$(mktemp -d)"
# local cloneDir="$HOME/.builds"
@ -156,8 +170,10 @@ buildScanner() {
}
cloneAndBuildScanner() {
if command_exists hyprwayland-scanner; then
echo_error "hyprwayland-scanner is already installed!"
PACKAGE=hyprwayland-scanner
if command_exists $PACKAGE; then
echo_error "hyprlang is already installed!"
return 69
fi
@ -186,7 +202,9 @@ buildLang() {
}
cloneAndBuildLang() {
if command_exists hyprlang; then
PACKAGE=hyprlang
if command_exists $PACKAGE; then
echo_error "hyprlang is already installed!"
return 69
fi
@ -216,6 +234,8 @@ build() {
}
cloneAndBuildLock() {
PACKAGE=hyprlock
local cloneDir="$(mktemp -d)"
cd $cloneDir || mkdir -p $cloneDir && cd $cloneDir