This commit is contained in:
pika 2025-05-19 17:13:55 +02:00
parent 90ba8e7ff7
commit f3e92f52fa

View file

@ -86,10 +86,8 @@ getDependencies() {
case "$distro" in
arch) checkAndInstall hyprgraphics ;;
debian)
if ! command_exists hyprutils; then
cloneAndBuildUtils
cloneAndBuildGraphics
fi
;;
esac
;;
@ -103,7 +101,7 @@ getDependencies() {
}
buildGraphics() {
echo_info "Building hyprgraphics"
echo_pkg build
run cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr -S . -B ./build
run cmake --build ./build --config Release --target all -j"$cores"
}
@ -116,7 +114,7 @@ cloneAndBuildGraphics() {
cd hyprgraphics
if buildGraphics; then
echo_info "Installing hyprgraphics.."
echo_pkg install
$_sudo cmake --install build
else
echo_error "Build has failed for $distro compiling hyprgraphics"
@ -125,7 +123,7 @@ cloneAndBuildGraphics() {
}
buildUtils() {
echo_info "Building hyprutils"
echo_pkg build "Building hyprutils"
run cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr -S . -B ./build
run cmake --build ./build --config Release --target all -j"$cores"
}
@ -188,6 +186,8 @@ main() {
_install hyprlock
;;
debian)
cloneAndBuildUtils
cloneAndBuildGraphics
cloneAndBuildLock
;;
*)