summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--comms/qrq/files/patch-Makefile11
1 files changed, 5 insertions, 6 deletions
diff --git a/comms/qrq/files/patch-Makefile b/comms/qrq/files/patch-Makefile
index fe787d72f2ef..fb1ec5280b29 100644
--- a/comms/qrq/files/patch-Makefile
+++ b/comms/qrq/files/patch-Makefile
@@ -1,6 +1,6 @@
--- Makefile.orig 2022-01-22 09:18:24 UTC
+++ Makefile
-@@ -2,13 +2,15 @@
+@@ -2,13 +2,15 @@ DESTDIR?=/usr
VERSION?=0.3.4
DESTDIR?=/usr
@@ -17,7 +17,7 @@
# set to YES if you compile with MINGW32
USE_WIN32=NO
-@@ -27,8 +29,8 @@ endif
+@@ -27,8 +29,8 @@ ifeq ($(USE_WIN32), YES)
ifeq ($(USE_WIN32), YES)
CC=i686-w64-mingw32-gcc-posix
@@ -28,7 +28,7 @@
endif
INSTALL ?= install
-@@ -38,7 +40,7 @@ INSTALL ?= install
+@@ -38,7 +40,7 @@ BUILD_INFO=" Date: $(shell date +%Y-%m-%dT%H:%M:%S%z)\
BUILD_INFO=" Date: $(shell date +%Y-%m-%dT%H:%M:%S%z)\n git branch/commit: $(shell if [ x${CI_COMMIT_REF_NAME} != x ]; then echo ${CI_COMMIT_REF_NAME} ; elif [ -e .git ] || [ -e ../.git ]; then git symbolic-ref --short HEAD ; else echo not built from git repository ; fi) / $(shell if [ x${CI_COMMIT_SHA} != x ]; then echo ${CI_COMMIT_SHA}; elif [ -e .git ] || [ -e ../.git ] ; then git rev-parse --verify HEAD ; else echo - ; fi )\n by $(USER)@$(shell hostname -f)\n OS: $(shell uname -s -r -p)\n Compiler: $(shell $(CC) --version | head -1)"
@@ -37,7 +37,7 @@
ifeq ($(USE_CA), YES)
CC=clang
-@@ -68,14 +70,14 @@ else ifeq ($(USE_WIN32), YES)
+@@ -68,14 +70,14 @@ else
OBJECTS=qrq.o qrq.res lib/libncursesw.a
else
OBJECTS=qrq.o oss.o
@@ -54,7 +54,7 @@
.c.o:
$(CC) -Wall $(CPPFLAGS) $(CFLAGS) -c $<
-@@ -109,28 +111,28 @@ uninstall:
+@@ -109,28 +111,27 @@ install: qrq
else
install: qrq
@@ -70,7 +70,6 @@
- ${INSTALL} -m 0644 qrqrc $(DESTDIR)/share/qrq/
- ${INSTALL} -m 0644 toplist $(DESTDIR)/share/qrq/
+ ${INSTALL} -d -v $(DESTDIR)${PREFIX}/share/qrq/
-+ ${INSTALL} -d -v $(DESTDIR)${PREFIX}/man/man1/
+ ${INSTALL} -d -v $(DESTDIR)${PREFIX}/bin/
+ ${INSTALL} -s -m 0755 qrq $(DESTDIR)${PREFIX}/bin/
+ ${INSTALL} -m 0755 qrqscore $(DESTDIR)${PREFIX}/bin/