From d0834fcb874f071da45dc54cc518200568ef9b23 Mon Sep 17 00:00:00 2001 From: ferreo Date: Sun, 1 Sep 2024 22:42:29 +0200 Subject: [PATCH] Update debian/rules --- debian/rules | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/debian/rules b/debian/rules index 3f8fd80..03c49fd 100755 --- a/debian/rules +++ b/debian/rules @@ -1,7 +1,17 @@ #!/usr/bin/make -f override_dh_auto_build: - make release + dh_auto_build -- PREFIX=/usr all + +override_dh_auto_install: + # Fix permission on hyprland.pc (Hyprland sets 777 on everything in + # build/ directory) + chmod 644 build/hyprland.pc + + # dh_auto_install auto detects the correct DESTDIR. + # Modify PREFIX so that this DESTDIR is actually taken into account. + # (Upstream Makefile supports PREFIX, but not DESTDIR) + dh_auto_install -- PREFIX='$${DESTDIR}/usr override_dh_clean: # call clear target provided by Hyprland