Debian build: Fix build rules

Upstream build process changed; accomodate changes in d/rules
This commit is contained in:
alan (NyxTrail) 2024-06-13 11:38:52 +00:00
parent 1cc9647d04
commit 46836fb165
No known key found for this signature in database
GPG Key ID: 32C5D29762C48D4A
3 changed files with 4 additions and 14 deletions

View File

@ -1,12 +0,0 @@
Description: Create the installation directory
Author: Alan M Varghese <alan@digistorm.in>
Last-Update: 2024-03-09
Forwarded: not-needed
--- a/Makefile
+++ b/Makefile
@@ -71,4 +71,5 @@
install:
make all
+ mkdir -p $(PREFIX)/bin
cp ./build/hyprpaper $(PREFIX)/bin -f

View File

@ -1 +0,0 @@
001-create-directories-in-install-path.patch

5
debian/rules vendored
View File

@ -13,7 +13,10 @@ export CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS) $(CPPFLAGS)
# hyprpaper uses the 'clear' target instead of a 'clean' target
override_dh_auto_clean:
dh_auto_clean
$(MAKE) clear
rm -rf *.c *.h obj-x86_64-linux-gnu/
override_dh_auto_configure:
dh_auto_configure -- -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr
override_dh_auto_install:
mkdir -p debian/tmp/usr/share/doc/hyprpaper