mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-05 14:42:01 -07:00
Merge pull request #269 from hyprwm/save-wlr
Save wlr on sudo make install
This commit is contained in:
11
Makefile
11
Makefile
@@ -107,6 +107,10 @@ all:
|
|||||||
cd ./hyprctl && make all && cd ..
|
cd ./hyprctl && make all && cd ..
|
||||||
|
|
||||||
install:
|
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
|
make all
|
||||||
mkdir -p ${PREFIX}/share/wayland-sessions
|
mkdir -p ${PREFIX}/share/wayland-sessions
|
||||||
cp ./example/hyprland.desktop ${PREFIX}/share/wayland-sessions/
|
cp ./example/hyprland.desktop ${PREFIX}/share/wayland-sessions/
|
||||||
@@ -118,6 +122,13 @@ install:
|
|||||||
cp ./assets/wall_4K.png ${PREFIX}/share/hyprland
|
cp ./assets/wall_4K.png ${PREFIX}/share/hyprland
|
||||||
cp ./assets/wall_8K.png ${PREFIX}/share/hyprland
|
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
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
rm -f ${PREFIX}/share/wayland-sessions/hyprland.desktop
|
rm -f ${PREFIX}/share/wayland-sessions/hyprland.desktop
|
||||||
rm -f ${PREFIX}/bin/Hyprland
|
rm -f ${PREFIX}/bin/Hyprland
|
||||||
|
Reference in New Issue
Block a user