- Clean up build dependencies - make use of pkgconfig - Refresh DESTDIR patch to upstream version * add_destdir_support.patch - Fix directory creation during installation + hsetroot-Fix-installation.patch OBS-URL: https://build.opensuse.org/request/show/943336 OBS-URL: https://build.opensuse.org/package/show/X11:Utilities/hsetroot?expand=0&rev=7
38 lines
893 B
Diff
38 lines
893 B
Diff
From 4d4cc8293c6b00c9b2977b3e71c526193a80ab44 Mon Sep 17 00:00:00 2001
|
|
From: Jani Juhani Sinervo <jani@sinervo.fi>
|
|
Date: Wed, 27 Oct 2021 16:05:20 +0300
|
|
Subject: [PATCH] Add DESTDIR to help with packaging
|
|
|
|
Git-commit: 4d4cc8293c6b00c9b2977b3e71c526193a80ab44
|
|
|
|
---
|
|
Makefile | 5 +++--
|
|
1 file changed, 3 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/Makefile b/Makefile
|
|
index a1217d9..d485357 100644
|
|
--- a/Makefile
|
|
+++ b/Makefile
|
|
@@ -5,6 +5,7 @@ CFLAGS?=-g -O2 -Wall
|
|
LDFLAGS?=
|
|
|
|
PREFIX?=/usr/local
|
|
+DESTDIR?=
|
|
|
|
# arch hardening
|
|
#CPPFLAGS+=-D_FORTIFY_SOURCE=2
|
|
@@ -34,8 +35,8 @@ hsetroot: hsetroot.o
|
|
hsr-outputs: hsr-outputs.o
|
|
|
|
install: hsetroot hsr-outputs
|
|
- install -st $(PREFIX)/bin/ hsetroot
|
|
- install -st $(PREFIX)/bin/ hsr-outputs
|
|
+ install -st $(DESTDIR)$(PREFIX)/bin/ hsetroot
|
|
+ install -st $(DESTDIR)$(PREFIX)/bin/ hsr-outputs
|
|
|
|
clean:
|
|
rm -f *.o hsetroot hsr-outputs
|
|
--
|
|
2.33.1
|
|
|