From b85893274f1d38720a2cdb58d8f5c71b0ed68ee7 Mon Sep 17 00:00:00 2001 From: Jonathan McCrohan Date: Sun, 8 Apr 2012 13:27:08 +0100 Subject: Refresh patch to reflect new upstream Makefile --- Makefile | 2 +- debian/patches/01-nyancat-make-install.patch | 70 +++++++--------------------- 2 files changed, 19 insertions(+), 53 deletions(-) diff --git a/Makefile b/Makefile index a44b116..e45440e 100644 --- a/Makefile +++ b/Makefile @@ -33,6 +33,6 @@ distcheck: $(distdir).tar.gz @echo "*** Package $(distdir).tar.gz is ready for distribution." install: all - install src/nyancat /usr/bin/${package} + install -Dm 0755 src/nyancat $(DESTDIR)/usr/bin/${package} .PHONY: FORCE all clean check dist distcheck install diff --git a/debian/patches/01-nyancat-make-install.patch b/debian/patches/01-nyancat-make-install.patch index 00b6062..54c4a55 100644 --- a/debian/patches/01-nyancat-make-install.patch +++ b/debian/patches/01-nyancat-make-install.patch @@ -1,54 +1,20 @@ -diff --git a/Makefile b/Makefile -index 9ac517f..318bce4 100644 ---- a/Makefile -+++ b/Makefile -@@ -1,35 +1,22 @@ -+prefix = /usr -+exec_prefix = ${prefix} -+ -+bindir = ${exec_prefix}/bin -+datarootdir = $(prefix)/share -+mandir = ${datarootdir}/man -+ - package = nyancat - version = 0.1 - tarname = $(package) - distdir = $(tarname)-$(version) +Description: Add $(DESTDIR) to install path + Required for debhelper dh_install + . + nyancat (0.1+git20120401.5a88b86-1) unstable; urgency=low + . + * Initial release (Closes: #661565) +Author: Jonathan McCrohan +Bug-Debian: http://bugs.debian.org/661565 + +--- +--- nyancat-0.1+git20120401.5a88b86.orig/Makefile ++++ nyancat-0.1+git20120401.5a88b86/Makefile +@@ -33,6 +33,6 @@ distcheck: $(distdir).tar.gz + @echo "*** Package $(distdir).tar.gz is ready for distribution." --all clean check nyancat: -- cd src && $(MAKE) $@ -- --dist: $(distdir).tar.gz -+SRCDIR = src -+INSTALL = /usr/bin/install -c + install: all +- install src/nyancat /usr/bin/${package} ++ install -Dm 0755 src/nyancat $(DESTDIR)/usr/bin/${package} --$(distdir).tar.gz: $(distdir) -- tar chof - $(distdir) | gzip -9 -c > $@ -- rm -rf $(distdir) -- --$(distdir): FORCE -- mkdir -p $(distdir)/src -- cp Makefile $(distdir) -- cp src/Makefile $(distdir)/src -- cp src/nyancat.c $(distdir)/src -- cp src/animation.h $(distdir)/src -- cp src/telnet.h $(distdir)/src -- --FORCE: -- -rm $(distdir).tar.gz >/dev/null 2>&1 -- -rm -rf $(distdir) >/dev/null 2>&1 -+all clean check nyancat: -+ cd $(SRCDIR) && $(MAKE) $@ - --distcheck: $(distdir).tar.gz -- gzip -cd $(distdir).tar.gz | tar xvf - -- cd $(distdir) && $(MAKE) all -- cd $(distdir) && $(MAKE) check -- cd $(distdir) && $(MAKE) clean -- rm -rf $(distdir) -- @echo "*** Package $(distdir).tar.gz is ready for distribution." -+install : -+ $(INSTALL) -Dm 0755 $(SRCDIR)/$(package) $(DESTDIR)$(bindir)/$(package) - --.PHONY: FORCE all clean check dist distcheck -+.PHONY: all clean check install + .PHONY: FORCE all clean check dist distcheck install -- cgit v1.2.3