From 54e8e786122ae5e8d87a49d19eb2e8c57eb06e6b Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Sat, 25 Jun 2022 12:13:24 +0200 Subject: [PATCH 1/3] save wlroots and restore --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index bb753451..aa3a52f8 100644 --- a/Makefile +++ b/Makefile @@ -107,6 +107,9 @@ all: cd ./hyprctl && make all && cd .. install: + [ ! -d /usr/include/wlr ] || mv /usr/include/wlr /usr/include/wlrBackup + [ ! -f /usr/lib/libwlroots.so ] || mv /usr/lib/libwlroots.so /usr/lib/libwlroots.so.backup + make all mkdir -p ${PREFIX}/share/wayland-sessions cp ./example/hyprland.desktop ${PREFIX}/share/wayland-sessions/ @@ -118,6 +121,10 @@ install: cp ./assets/wall_4K.png ${PREFIX}/share/hyprland cp ./assets/wall_8K.png ${PREFIX}/share/hyprland + rm -rf /usr/include/wlr + [ ! -d /usr/include/wlrBackup ] || mv /usr/include/wlrBackup /usr/include/wlr + [ ! -f /usr/lib/libwlroots.so.backup ] || mv -f /usr/lib/libwlroots.so.backup /usr/lib/libwlroots.so + uninstall: rm -f ${PREFIX}/share/wayland-sessions/hyprland.desktop rm -f ${PREFIX}/bin/Hyprland From 7dad15035a418d567eac1b99781a6aa8e2be09b3 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Mon, 27 Jun 2022 11:40:23 +0200 Subject: [PATCH 2/3] forgot wlroots.pc --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index aa3a52f8..618e755e 100644 --- a/Makefile +++ b/Makefile @@ -109,6 +109,7 @@ all: install: [ ! -d /usr/include/wlr ] || mv /usr/include/wlr /usr/include/wlrBackup [ ! -f /usr/lib/libwlroots.so ] || mv /usr/lib/libwlroots.so /usr/lib/libwlroots.so.backup + [ ! -f /usr/lib/pkgconfig/wlroots.pc ] || mv /usr/lib/pkgconfig/wlroots.pc /usr/lib/pkgconfig/wlroots.pc.backup make all mkdir -p ${PREFIX}/share/wayland-sessions @@ -124,6 +125,7 @@ install: rm -rf /usr/include/wlr [ ! -d /usr/include/wlrBackup ] || mv /usr/include/wlrBackup /usr/include/wlr [ ! -f /usr/lib/libwlroots.so.backup ] || mv -f /usr/lib/libwlroots.so.backup /usr/lib/libwlroots.so + [ ! -f /usr/lib/pkgconfig/wlroots.pc.backup ] || mv -f /usr/lib/pkgconfig/wlroots.pc.backup /usr/lib/pkgconfig/wlroots.pc uninstall: rm -f ${PREFIX}/share/wayland-sessions/hyprland.desktop From 07013b835dc9c4d03e94bdabfca796ea447708a8 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Mon, 27 Jun 2022 11:42:52 +0200 Subject: [PATCH 3/3] remove so and pc --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 618e755e..4c281568 100644 --- a/Makefile +++ b/Makefile @@ -123,6 +123,8 @@ install: cp ./assets/wall_8K.png ${PREFIX}/share/hyprland rm -rf /usr/include/wlr + rm -f /usr/lib/libwlroots.so + rm -f /usr/lib/pkgconfig/wlroots.pc [ ! -d /usr/include/wlrBackup ] || mv /usr/include/wlrBackup /usr/include/wlr [ ! -f /usr/lib/libwlroots.so.backup ] || mv -f /usr/lib/libwlroots.so.backup /usr/lib/libwlroots.so [ ! -f /usr/lib/pkgconfig/wlroots.pc.backup ] || mv -f /usr/lib/pkgconfig/wlroots.pc.backup /usr/lib/pkgconfig/wlroots.pc