[Pkg-wmaker-commits] [wmcube] 29/67: debian/patches: (update_makefile.patch) Various changes to upstream Makefile to properly build package and silence Lintian errors and warnings.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Tue Aug 25 03:22:16 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch master
in repository wmcube.

commit 83b0d7b6db985b5d76867f4502075be4d54d865d
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date:   Sun Jan 11 11:10:57 2015 -0600

    debian/patches: (update_makefile.patch) Various changes to upstream Makefile to
    properly build package and silence Lintian errors and warnings.
---
 debian/patches/series                |  1 +
 debian/patches/update_makefile.patch | 48 ++++++++++++++++++++++++++++++++++++
 2 files changed, 49 insertions(+)

diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..742655f
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+update_makefile.patch
diff --git a/debian/patches/update_makefile.patch b/debian/patches/update_makefile.patch
new file mode 100644
index 0000000..7a334cd
--- /dev/null
+++ b/debian/patches/update_makefile.patch
@@ -0,0 +1,48 @@
+Description: Update Makefile.
+ In particular,
+ - Change doc installation directory to avoid FSSTND-dir-in-usr Lintian error.
+ - Honor DESTDIR variable.
+ - Create binary installation directory.
+ - Skip installation of CHANGES to avoid wrong-name-for-upstream-changelog
+   Lintian warning.
+ - Skip installation of COPYING to avoid extra-license-file Lintian warning.
+ - Skip installation of INSTALL to avoid
+   package-contains-upstream-install-documentation Lintian warning.
+Author: Doug Torrance <dtorrance at monmouthcollege.edu>
+Last-Update: 2015-01-11
+
+--- a/wmcube/Makefile
++++ b/wmcube/Makefile
+@@ -7,7 +7,7 @@
+ 
+ PREFIX = /usr
+ BINDIR = $(PREFIX)/bin
+-DOCDIR = $(PREFIX)/doc/wmcube-1.0.0
++DOCDIR = $(PREFIX)/share/doc/wmcube
+ OBJDIR = $(PREFIX)/share/wmcube
+ 
+ # Edit OSLIBS as appropriate to include OS specific libraries.
+@@ -37,14 +37,15 @@
+ 	rm -f *~
+ 
+ install:: wmcube
+-	cp -f wmcube $(BINDIR)
+-	chmod 755 $(BINDIR)/wmcube
+-	chown root:root $(BINDIR)/wmcube
+-	mkdir -p $(DOCDIR)
+-	cp -p ../CHANGES ../COPYING ../INSTALL ../README $(DOCDIR)
+-	cp -pr ../3D-objects $(DOCDIR)
+-	mkdir -p $(OBJDIR)
+-	cp -p ../3D-objects/* $(OBJDIR)
++	mkdir -p $(DESTDIR)$(BINDIR)
++	cp -f wmcube $(DESTDIR)$(BINDIR)
++	chmod 755 $(DESTDIR)$(BINDIR)/wmcube
++	chown root:root $(DESTDIR)$(BINDIR)/wmcube
++	mkdir -p $(DESTDIR)$(DOCDIR)
++	cp -p ../README $(DESTDIR)$(DOCDIR)
++	cp -pr ../3D-objects $(DESTDIR)$(DOCDIR)
++	mkdir -p $(DESTDIR)$(OBJDIR)
++	cp -p ../3D-objects/* $(DESTDIR)$(OBJDIR)
+ 	@echo "wmcube installation finished..."
+ 
+ uninstall::

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmcube.git



More information about the Pkg-wmaker-commits mailing list