mirror of
https://github.com/JaKooLit/Debian-Hyprland.git
synced 2026-02-05 01:30:13 +01:00
Hyprland tag set to 52.2
This commit is contained in:
parent
eef41a7104
commit
fd832ef277
@ -3,7 +3,7 @@
|
||||
# Main Hyprland Package#
|
||||
|
||||
#specific branch or release
|
||||
tag="v0.52.2"
|
||||
tag="v0.53.0"
|
||||
# Allow environment override
|
||||
if [ -n "${HYPRLAND_TAG:-}" ]; then tag="$HYPRLAND_TAG"; fi
|
||||
|
||||
@ -27,7 +27,7 @@ hyprland=(
|
||||
|
||||
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
||||
# Determine the directory where the script is located
|
||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
|
||||
# Change the working directory to the parent directory of the script
|
||||
PARENT_DIR="$SCRIPT_DIR/.."
|
||||
@ -63,7 +63,6 @@ if [ ! -d /usr/include/glaze ]; then
|
||||
echo "${INFO} ${YELLOW}libglaze-dev from assets${RESET} installed."
|
||||
fi
|
||||
|
||||
|
||||
printf "\n%.0s" {1..1}
|
||||
|
||||
# Clone, build, and install Hyprland using Cmake
|
||||
@ -80,7 +79,7 @@ if git clone --recursive -b $tag "https://github.com/hyprwm/Hyprland"; then
|
||||
|
||||
# Compatibility shim for toolchains without std::vector::{insert_range,append_range}
|
||||
RANGE_HDR="$(pwd)/hypr_range_compat.hpp"
|
||||
cat > "$RANGE_HDR" <<'EOF'
|
||||
cat >"$RANGE_HDR" <<'EOF'
|
||||
#pragma once
|
||||
#include <iterator>
|
||||
#include <ranges>
|
||||
@ -109,22 +108,22 @@ EOF
|
||||
EX_CONF="$(pwd)/example/hyprland.conf"
|
||||
EMBED_INC="$(pwd)/src/config/defaultConfig.bytes.inc"
|
||||
if [ -f "$EX_CONF" ]; then
|
||||
xxd -i -g 1 -c 16 "$EX_CONF" | sed -n '/^{/{flag=1;next} /};/{flag=0} flag p' > "$EMBED_INC" || true
|
||||
xxd -i -g 1 -c 16 "$EX_CONF" | sed -n '/^{/{flag=1;next} /};/{flag=0} flag p' >"$EMBED_INC" || true
|
||||
# Swap the directive in the header to include the generated bytes
|
||||
sed -ri 's|^\s*#embed\s+"\.{0,2}/\.{0,2}/example/hyprland\.conf"\s*$|#include "defaultConfig.bytes.inc"|g' src/config/defaultConfig.hpp || true
|
||||
fi
|
||||
|
||||
# Apply patch only if it applies cleanly; otherwise skip
|
||||
if [ -f ../assets/0001-fix-hyprland-compile-issue.patch ]; then
|
||||
if patch -p1 --dry-run < ../assets/0001-fix-hyprland-compile-issue.patch >/dev/null 2>&1; then
|
||||
patch -p1 < ../assets/0001-fix-hyprland-compile-issue.patch
|
||||
if patch -p1 --dry-run <../assets/0001-fix-hyprland-compile-issue.patch >/dev/null 2>&1; then
|
||||
patch -p1 <../assets/0001-fix-hyprland-compile-issue.patch
|
||||
else
|
||||
echo "${NOTE} Hyprland compile patch does not apply on $tag; skipping."
|
||||
fi
|
||||
fi
|
||||
# By default, build Hyprland with bundled hyprutils/hyprlang to avoid version mismatches
|
||||
# You can force system libs by exporting USE_SYSTEM_HYPRLIBS=1 before running this script.
|
||||
USE_SYSTEM=${USE_SYSTEM_HYPRLIBS:-1}
|
||||
USE_SYSTEM=${USE_SYSTEM_HYPRLIBS:-1}
|
||||
if [ "$USE_SYSTEM" = "1" ]; then
|
||||
export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:${PKG_CONFIG_PATH:-}"
|
||||
export CMAKE_PREFIX_PATH="/usr/local:${CMAKE_PREFIX_PATH:-}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user