summaryrefslogtreecommitdiff
path: root/x11-misc/compton/files/makefile.patch
diff options
context:
space:
mode:
Diffstat (limited to 'x11-misc/compton/files/makefile.patch')
-rw-r--r--x11-misc/compton/files/makefile.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/x11-misc/compton/files/makefile.patch b/x11-misc/compton/files/makefile.patch
new file mode 100644
index 00000000..904ec97b
--- /dev/null
+++ b/x11-misc/compton/files/makefile.patch
@@ -0,0 +1,31 @@
+diff -Nur a/Makefile b/Makefile
+--- a/Makefile 2013-10-21 15:17:01.000000000 +0100
++++ b/Makefile 2017-12-03 19:42:08.110646392 +0000
+@@ -6,7 +6,6 @@
+ PREFIX ?= /usr
+ BINDIR ?= $(PREFIX)/bin
+ MANDIR ?= $(PREFIX)/share/man/man1
+-APPDIR ?= $(PREFIX)/share/applications
+
+ PACKAGES = x11 xcomposite xfixes xdamage xrender xext xrandr
+ LIBS = -lm -lrt
+@@ -126,10 +125,9 @@
+ docs: $(MANPAGES) $(MANPAGES_HTML)
+
+ install: $(BINS) docs
+- @install -d "$(DESTDIR)$(BINDIR)" "$(DESTDIR)$(MANDIR)" "$(DESTDIR)$(APPDIR)"
++ @install -d "$(DESTDIR)$(BINDIR)" "$(DESTDIR)$(MANDIR)"
+ @install -m755 $(BINS) "$(DESTDIR)$(BINDIR)"/
+ @install -m644 $(MANPAGES) "$(DESTDIR)$(MANDIR)"/
+- @install -m644 compton.desktop "$(DESTDIR)$(APPDIR)"/
+ ifneq "$(DOCDIR)" ""
+ @install -d "$(DESTDIR)$(DOCDIR)"
+ @install -m644 README.md compton.sample.conf "$(DESTDIR)$(DOCDIR)"/
+@@ -139,7 +137,6 @@
+ uninstall:
+ @rm -f "$(DESTDIR)$(BINDIR)/compton" "$(DESTDIR)$(BINDIR)/compton-trans"
+ @rm -f $(addprefix "$(DESTDIR)$(MANDIR)"/, compton.1 compton-trans.1)
+- @rm -f "$(DESTDIR)$(APPDIR)/compton.desktop"
+ ifneq "$(DOCDIR)" ""
+ @rm -f $(addprefix "$(DESTDIR)$(DOCDIR)"/, README.md compton.sample.conf cdbus-driver.sh)
+ endif