From 8e507a9fec0be0967cbe772f38d478b01a57f5bf Mon Sep 17 00:00:00 2001 From: Don Williams Date: Fri, 9 Jan 2026 23:14:35 -0500 Subject: [PATCH] Fixing build scrpt to work onm debian stable On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: install-scripts/hyprland-guiutils.sh --- install-scripts/hyprland-guiutils.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/install-scripts/hyprland-guiutils.sh b/install-scripts/hyprland-guiutils.sh index 01dd9b3..fc6df4f 100755 --- a/install-scripts/hyprland-guiutils.sh +++ b/install-scripts/hyprland-guiutils.sh @@ -72,7 +72,14 @@ fi printf "${INFO} Installing ${YELLOW}hyprland-guiutils $tag${RESET} ...\n" if git clone --recursive -b $tag https://github.com/hyprwm/hyprland-guiutils.git; then cd hyprland-guiutils || exit 1 - cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr -S . -B ./build + # Prefer /usr/local Hypr* libs so we don't accidentally link against copies in /lib. + export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:${PKG_CONFIG_PATH:-}" + export CMAKE_PREFIX_PATH="/usr/local:${CMAKE_PREFIX_PATH:-}" + export LD_LIBRARY_PATH="/usr/local/lib:${LD_LIBRARY_PATH:-}" + export LDFLAGS="-L/usr/local/lib -Wl,-rpath,/usr/local/lib -Wl,-rpath-link,/usr/local/lib ${LDFLAGS:-}" + export CPPFLAGS="-I/usr/local/include ${CPPFLAGS:-}" + + cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr/local -S . -B ./build cmake --build ./build --config Release --target all -j`nproc 2>/dev/null || getconf NPROCESSORS_CONF` if [ $DO_INSTALL -eq 1 ]; then if sudo cmake --install ./build 2>&1 | tee -a "$MLOG" ; then