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