[SCM] collaborative maintenance of the dopewars package branch, master, updated. debian/1.5.12-12-14-g4aa0cfe

Dean Evans dean at codemonkies.net
Mon Mar 12 02:24:53 UTC 2012


The following commit has been merged in the master branch:
commit 6821197df7c8e7cf9a271d422e976701d8215f6e
Author: Dean Evans <dean at codemonkies.net>
Date:   Thu Mar 8 00:16:32 2012 +1300

    Rewrite with a simplified debhelper v9 rules file.

diff --git a/debian/rules b/debian/rules
index 643ac96..c8de341 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,91 +1,29 @@
 #!/usr/bin/make -f
-# Sample debian/rules that uses debhelper.
-# GNU copyright 1997 to 1999 by Joey Hess.
-
-# Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-export SED=sed # work-around for broken libtool
-
-# Stuff taken from autotools-dev
-export DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
-export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
-
-ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
-	confflags += --build $(DEB_HOST_GNU_TYPE)
-else
-	confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
-endif
-
-build: configure build-stamp
-build-stamp:
-	dh_testdir
-
-	./configure $(confflags) --prefix=/usr --bindir=/usr/games --localstatedir=/var/games
-	$(MAKE)
-
-	touch build-stamp
+override_dh_auto_configure:
+	dh_auto_configure -- --prefix=/usr --bindir=/usr/games --localstatedir=/var/games --libdir=/usr/lib --libexecdir=/usr/lib
 
-clean:
-	dh_testdir
-	dh_testroot
-	rm -f build-stamp
-	rm -f intl/libintl.h
-	rm -f po/*.gmo
+override_dh_autoreconf:
+	cp -f /usr/share/automake-1.11/mkinstalldirs .
+	dh_autoreconf
 
-	[ ! -f Makefile ] || $(MAKE) distclean
-	[ ! -f Makefile ] || $(MAKE) clean
+override_dh_autoreconf_clean:
+	rm -f mkinstalldirs
+	dh_autoreconf_clean
 
-	dh_clean
-
-#       Update config.sub and config.guess
-	-test -r /usr/share/misc/config.sub && \
-		cp -f /usr/share/misc/config.sub config.sub
-	-test -r /usr/share/misc/config.guess && \
-		cp -f /usr/share/misc/config.guess config.guess
-
-install: build
-	dh_testdir
-	dh_testroot
-	dh_prep
-	dh_installdirs
-
-	$(MAKE) install DESTDIR=$(CURDIR)/debian/dopewars
+override_dh_install:
+	dh_install
+	rm -f $(CURDIR)/debian/dopewars-data/usr/share/doc/dopewars/html/LICENCE
 	rm -rf $(CURDIR)/debian/dopewars/var
-	mv $(CURDIR)/debian/dopewars/usr/share/ $(CURDIR)/debian/dopewars-data/usr/
-
-	mkdir -p $(CURDIR)/debian/dopewars/usr/share/applications/
-	cp $(CURDIR)/dopewars.desktop $(CURDIR)/debian/dopewars/usr/share/applications/
-
-	rm -rf $(CURDIR)/debian/dopewars-data/usr/share/gnome
-	rm $(CURDIR)/debian/dopewars-data/usr/share/doc/dopewars/html/LICENCE
-
-	chmod -x $(CURDIR)/debian/dopewars/usr/lib/dopewars/*.so
-	chrpath -d $(CURDIR)/debian/dopewars/usr/games/dopewars
-	chrpath -d $(CURDIR)/debian/dopewars/usr/lib/dopewars/*
 
-# Build architecture-independent files here.
-binary-indep: build install
-# We have nothing to do by default.
+override_dh_fixperms:
+	dh_fixperms
+	chgrp games $(CURDIR)/debian/dopewars/usr/games/dopewars
+	chmod 2755 $(CURDIR)/debian/dopewars/usr/games/dopewars
 
-# Build architecture-dependent files here.
-binary-arch: build install
-	dh_testdir
-	dh_testroot
-	dh_installdocs
-	dh_installman doc/dopewars.6
-	rm -rf debian/dopewars/usr/man
-	dh_installchangelogs ChangeLog
-	dh_installmenu
-	dh_strip
-	dh_compress
-	chmod 2755 debian/dopewars/usr/games/dopewars
-	chgrp games debian/dopewars/usr/games/dopewars
-	dh_installdeb
-	dh_shlibdeps
-	dh_gencontrol
-	dh_md5sums
-	dh_builddeb
+override_dh_makeshlibs:
+	dh_makeshlibs -Xusr/lib/dopewars
 
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install
+%:
+	dh $@ --with autoreconf --parallel
\ No newline at end of file

-- 
collaborative maintenance of the dopewars package



More information about the Pkg-games-commits mailing list