From 46836fb1654329128ede3a319a9b439634e55008 Mon Sep 17 00:00:00 2001 From: "alan (NyxTrail)" Date: Thu, 13 Jun 2024 11:38:52 +0000 Subject: [PATCH] Debian build: Fix build rules Upstream build process changed; accomodate changes in d/rules --- .../001-create-directories-in-install-path.patch | 12 ------------ debian/patches/series | 1 - debian/rules | 5 ++++- 3 files changed, 4 insertions(+), 14 deletions(-) delete mode 100644 debian/patches/001-create-directories-in-install-path.patch delete mode 100644 debian/patches/series diff --git a/debian/patches/001-create-directories-in-install-path.patch b/debian/patches/001-create-directories-in-install-path.patch deleted file mode 100644 index 849eea6..0000000 --- a/debian/patches/001-create-directories-in-install-path.patch +++ /dev/null @@ -1,12 +0,0 @@ -Description: Create the installation directory -Author: Alan M Varghese -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 diff --git a/debian/patches/series b/debian/patches/series deleted file mode 100644 index 9413bf4..0000000 --- a/debian/patches/series +++ /dev/null @@ -1 +0,0 @@ -001-create-directories-in-install-path.patch diff --git a/debian/rules b/debian/rules index 0cb06c3..2a1d483 100755 --- a/debian/rules +++ b/debian/rules @@ -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