From 5fd813db395a1014c815fba134fbb6483c1bf1f1 Mon Sep 17 00:00:00 2001 From: "alan (NyxTrail)" Date: Sat, 15 Jun 2024 11:48:14 +0000 Subject: [PATCH] Fix hyprland symlink --- debian/hyprland.install | 1 + debian/patches/004-fix-hyprland-symlink.patch | 18 ++++++++++++++++++ debian/patches/series | 1 + 3 files changed, 20 insertions(+) create mode 100644 debian/patches/004-fix-hyprland-symlink.patch diff --git a/debian/hyprland.install b/debian/hyprland.install index 21c8693..859149f 100644 --- a/debian/hyprland.install +++ b/debian/hyprland.install @@ -1,4 +1,5 @@ usr/bin/Hyprland +usr/bin/hyprland usr/bin/hyprctl usr/bin/hyprpm usr/share/hyprland/hyprland.conf diff --git a/debian/patches/004-fix-hyprland-symlink.patch b/debian/patches/004-fix-hyprland-symlink.patch new file mode 100644 index 0000000..4c60ce4 --- /dev/null +++ b/debian/patches/004-fix-hyprland-symlink.patch @@ -0,0 +1,18 @@ +Description: Fix symbolic link + Generate symlink with correct PREFIX and DATADIR settings. +Author: Alan M Varghese +Last-Update: 2024-06-15 +Forwarded: not-needed +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -338,9 +338,7 @@ + install(TARGETS Hyprland) + + install(CODE "execute_process( \ +- COMMAND ${CMAKE_COMMAND} -E create_symlink \ +- ${CMAKE_INSTALL_BINDIR}/Hyprland \ +- ${CMAKE_INSTALL_BINDIR}/hyprland ++ COMMAND bash -c \"cd $PREFIX/${CMAKE_INSTALL_BINDIR} && ln -sf Hyprland hyprland \" + )" + ) + diff --git a/debian/patches/series b/debian/patches/series index fff5c88..a281505 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,3 +1,4 @@ 001-use-bash-in-makefile.patch 002-use-system-udis86.patch 003-use-system-hyprland-protocols.patch +004-fix-hyprland-symlink.patch