This commit is contained in:
pika 2025-05-19 17:40:40 +02:00
parent 01f065cbce
commit acdebf1be7

View file

@ -51,14 +51,14 @@ checkComp() {
} }
getDependencies() { getDependencies() {
echo_info "Checking build dependencies.." echo_pkg deps "Checking build dependencies.."
# INFO: # INFO:
# ╭─────────────────────────────────────────────────────────────────────────╮ # ╭─────────────────────────────────────────────────────────────────────────╮
# │ You can define dependencies for various linux distros here. It will │ # │ You can define dependencies for various linux distros here. It will │
# │ automagically be pulled via the $pkgArray[$distro] variable │ # │ automagically be pulled via the $pkgArray[$distro] variable │
# ╰─────────────────────────────────────────────────────────────────────────╯ # ╰─────────────────────────────────────────────────────────────────────────╯
depsDebian=(libpugixml-dev libpixman-1-dev libcairo2-dev cmake libxkbcommon-dev wayland-protocols libpango1.0-dev libwayland-client-extra++1 libwebp-dev libjpeg-dev libspng-dev libmagic-dev libcairo2-dev mesa-common-dev cmake libgbm-dev libdrm-dev libopengl-dev wayland-protocols wayland-utils libsdbus-c++-dev libhyprlang-dev hyprgraphics) depsDebian=(libpugixml-dev libpixman-1-dev libcairo2-dev cmake libxkbcommon-dev wayland-protocols libpango1.0-dev libwayland-client-extra++1 libwebp-dev libjpeg-dev libspng-dev libmagic-dev libcairo2-dev mesa-common-dev cmake libgbm-dev libdrm-dev libopengl-dev wayland-protocols wayland-utils libsdbus-c++-dev hyprgraphics)
depsArch=(hyprutils hyprlang hyprgraphics) depsArch=(hyprutils hyprlang hyprgraphics)
# depsUbuntu=() # depsUbuntu=()
# depsFedora=() # depsFedora=()
@ -150,12 +150,13 @@ cloneAndBuildUtils() {
cd $cloneDirUtils || mkdir -p $cloneDirUtils && cd $cloneDirUtils cd $cloneDirUtils || mkdir -p $cloneDirUtils && cd $cloneDirUtils
echo_info "Cloning sources for hyprutils into $cloneDirUtils/hyprutils" echo_pkg clone
git clone --depth=1 https://github.com/hyprwm/hyprutils.git && git clone --depth=1 https://github.com/hyprwm/hyprutils.git &&
cd hyprutils cd hyprutils
if buildUtils; then if buildUtils; then
echo_info "Installing hyprutils.." echo_pkg install
$_sudo cmake --install build $_sudo cmake --install build
else else
echo_error "Build has failed for $distro compiling hyprutils" echo_error "Build has failed for $distro compiling hyprutils"