The following commit has been merged in the master branch:
commit c751815d46c98ad9af2461ac1e717349b5a17434
Author: Bruno Kleinert <[email protected]>
Date:   Fri Mar 25 18:10:55 2011 +0100

    Use debhelper >= 8 to build the package
    
    Rewrite debian/rules
    Bump build-dependency to debhelper (>= 8)

diff --git a/debian/changelog b/debian/changelog
index c1cbf45..c7d54b0 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+nexuiz (2.5.2-5) unstable; urgency=low
+
+  * Use debhelper 8 to build the source package
+    * Bump build-dependency to debhelper (>= 8)
+    * Rewrite debian/rules
+
+ -- Bruno "Fuddl" Kleinert <[email protected]>  Fri, 25 Mar 2011 18:05:17 +0100
+
 nexuiz (2.5.2-4) unstable; urgency=low
 
   [ Bruno "Fuddl" Kleinert ]
diff --git a/debian/control b/debian/control
index 531b7bb..bba5a17 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: games
 Priority: optional
 Maintainer: Debian Games Team <[email protected]>
 Uploaders: Bruno "Fuddl" Kleinert <[email protected]>, GonĂ©ri Le Bouder 
<[email protected]>
-Build-Depends: debhelper (>= 7), libsdl1.2-dev, imagemagick
+Build-Depends: debhelper (>= 8), libsdl1.2-dev, imagemagick
 Standards-Version: 3.9.1
 Homepage: http://www.alientrap.org/nexuiz/
 Vcs-Git: git://git.debian.org/pkg-games/nexuiz
diff --git a/debian/rules b/debian/rules
index 0f7235b..92f00b4 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,59 +1,28 @@
 #!/usr/bin/make -f
 #export DH_VERBOSE=1
 
-ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
-    NUMJOBS = $(patsubst parallel=%,%,$(filter 
parallel=%,$(DEB_BUILD_OPTIONS)))
-    MAKEFLAGS += -j$(NUMJOBS)
-endif
+%:
+       dh $@
 
-build: build-stamp
-build-stamp:
-       dh_testdir
+override_dh_auto_build:
        $(MAKE) CFLAGS_DEBUG="$(CFLAGS)" \
-                       DP_FS_BASEDIR=/usr/share/games/nexuiz \
-                       sdl-debug sv-debug
-       touch build-stamp
+               DP_FS_BASEDIR=/usr/share/games/nexuiz \
+               sdl-debug sv-debug
 
-clean:
-       dh_testdir
-       dh_testroot
-       rm -f build-stamp configure-stamp
+override_dh_auto_clean:
        rm -rf debian/tmp
        $(MAKE) clean
-       dh_clean
 
-install: build
-       dh_testdir
-       dh_testroot
-       dh_prep
-       dh_installdirs
+override_dh_auto_install:
        mkdir -p debian/tmp
        cp darkplaces-sdl debian/tmp/nexuiz
        cp darkplaces-dedicated debian/tmp/nexuiz-server
        convert nexuiz.xpm debian/tmp/nexuiz48x48.png
        convert -scale 32x32 nexuiz.xpm debian/tmp/nexuiz.xpm
-       dh_install
-       
-binary-indep: build install
-binary-arch: build install
-       dh_testdir
-       dh_testroot
-       dh_installchangelogs 
-       dh_installdocs
-       dh_installexamples
-       dh_installmenu
-       dh_icons -pnexuiz
-       dh_installman -pnexuiz debian/nexuiz.6
-       dh_installman -pnexuiz-server debian/nexuiz-server.6
+
+override_dh_strip:
        dh_strip -pnexuiz --dbg-package=nexuiz-dbg
        dh_strip -pnexuiz-server --dbg-package=nexuiz-server-dbg
-       dh_compress
-       dh_fixperms
-       dh_installdeb
-       dh_shlibdeps
-       dh_gencontrol
-       dh_md5sums
-       dh_builddeb
 
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install
+override_dh_icons:
+       dh_icons -pnexuiz

-- 
Packaging for the Nexuiz engine

_______________________________________________
Pkg-games-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pkg-games-commits

Reply via email to