Author: apo-guest
Date: 2013-03-29 00:15:57 +0000 (Fri, 29 Mar 2013)
New Revision: 13978

Added:
   packages/trunk/dd2/debian/images/
   packages/trunk/dd2/debian/images/dodgindiamond2.png
   packages/trunk/dd2/debian/images/dodgindiamond2.xpm
   packages/trunk/dd2/debian/source/
   packages/trunk/dd2/debian/source/format
   packages/trunk/dd2/debian/source/include-binaries
Modified:
   packages/trunk/dd2/debian/changelog
   packages/trunk/dd2/debian/compat
   packages/trunk/dd2/debian/control
   packages/trunk/dd2/debian/copyright
   packages/trunk/dd2/debian/dodgindiamond2.desktop
   packages/trunk/dd2/debian/install
   packages/trunk/dd2/debian/menu
   packages/trunk/dd2/debian/patches/001_configure.patch
   packages/trunk/dd2/debian/patches/01_update_readme.patch
   packages/trunk/dd2/debian/patches/02_makefile_scores.patch
   packages/trunk/dd2/debian/patches/03_hiscore_file.patch
   packages/trunk/dd2/debian/patches/04_hiscore_patches.patch
   packages/trunk/dd2/debian/patches/series
   packages/trunk/dd2/debian/postinst
   packages/trunk/dd2/debian/postrm
   packages/trunk/dd2/debian/rules
Log:
New debian revision 0.2.2-2

Add images.
Switch to package format 3.0 (quilt).
Build with all hardening build flags.
Update to copyright format 1.0.
Add dep3 headers to all patches.
Use dh sequencer.
Use dh-autoreconf.
Fix all Lintian warnings.



Modified: packages/trunk/dd2/debian/changelog
===================================================================
--- packages/trunk/dd2/debian/changelog 2013-03-25 05:59:56 UTC (rev 13977)
+++ packages/trunk/dd2/debian/changelog 2013-03-29 00:15:57 UTC (rev 13978)
@@ -1,9 +1,33 @@
 dd2 (0.2.2-2) UNRELEASED; urgency=low
 
-  * NOT RELEASED YET
+  * Team upload.
 
- -- Alexander Schmehl <toli...@debian.org>  Wed, 13 Feb 2008 12:00:12 +0100
+  [ Paul Wise ]
+  * Drop use of dh_desktop since it no longer does anything.
 
+  [ Markus Koschany ]
+  * Switch to package format 3.0 (quilt).
+  * Bump compat level to 9 and require debhelper >=9 for automatic hardening
+    build flags.
+  * debian/control:
+    - Update Standards-Version to 3.9.4, no changes needed.
+    - Drop autoconf, automake and autotools-dev from Build-Depends. Instead use
+      dh-autoreconf to reconfigure the whole build system during build time.
+    - Use canonical Vcs-URI.
+    - Drop quilt from Build-Depends because package format 3.0 uses quilt by
+      default.
+  * Update debian/copyright to copyright format 1.0.
+  * dodgindiamond2.desktop: Update desktop file, add Keywords and Icon key.
+  * Add longtitle and icon entry to menu file.
+  * Add -e flag to maintainer scripts. Do not ignore possible errors.
+  * debian/rules:
+    - Simplify debian/rules by using dh sequencer.
+    - Build with hardening=+all.
+  * Add desktop and menu icons.
+  * Add dep3 headers to all patches.
+
+ -- Markus Koschany <a...@gambaru.de>  Thu, 28 Mar 2013 23:13:12 +0100
+
 dd2 (0.2.2-1) unstable; urgency=low
 
   [ Barry deFreese ]

Modified: packages/trunk/dd2/debian/compat
===================================================================
--- packages/trunk/dd2/debian/compat    2013-03-25 05:59:56 UTC (rev 13977)
+++ packages/trunk/dd2/debian/compat    2013-03-29 00:15:57 UTC (rev 13978)
@@ -1 +1 @@
-5
+9

Modified: packages/trunk/dd2/debian/control
===================================================================
--- packages/trunk/dd2/debian/control   2013-03-25 05:59:56 UTC (rev 13977)
+++ packages/trunk/dd2/debian/control   2013-03-29 00:15:57 UTC (rev 13978)
@@ -3,16 +3,22 @@
 Priority: optional
 Maintainer: Debian Games Team <pkg-games-de...@lists.alioth.debian.org>
 Uploaders: Barry deFreese <bddeb...@comcast.net>
-Build-Depends: debhelper (>= 5.0.0), autotools-dev, autoconf, automake, quilt, 
libsdl1.2-dev, libsdl-gfx1.2-dev, libsdl-image1.2-dev, libsdl-mixer1.2-dev
-Standards-Version: 3.7.3
+Build-Depends:
+ dh-autoreconf,
+ debhelper (>= 9),
+ libsdl-gfx1.2-dev,
+ libsdl-image1.2-dev,
+ libsdl-mixer1.2-dev,
+ libsdl1.2-dev
+Standards-Version: 3.9.4
 Homepage: http://www.usebox.net/jjm/dd2/
-Vcs-Svn: svn://svn.debian.org/svn/pkg-games/packages/trunk/dd2/
-Vcs-Browser: http://svn.debian.org/wsvn/pkg-games/packages/trunk/dd2/?op=log
+Vcs-Svn: svn://anonscm.debian.org/pkg-games/packages/trunk/dd2/
+Vcs-Browser: http://anonscm.debian.org/viewvc/pkg-games/packages/trunk/dd2/
 
 Package: dodgindiamond2
 Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}
+Depends: ${misc:Depends}, ${shlibs:Depends}
 Description: Little shoot-'em-up arcade game for one or two players
- This aims to be an old school arcade game with low resolution graphics, 
+ This aims to be an old school arcade game with low resolution graphics,
  top-down scrolling action, energy based gameplay, and different weapons
  with several levels of power.

Modified: packages/trunk/dd2/debian/copyright
===================================================================
--- packages/trunk/dd2/debian/copyright 2013-03-25 05:59:56 UTC (rev 13977)
+++ packages/trunk/dd2/debian/copyright 2013-03-29 00:15:57 UTC (rev 13978)
@@ -1,32 +1,34 @@
-This package was debianized by Gürkan Sengün <gur...@linuks.mine.nu> on
-Wed, 15 Mar 2006 07:39:02 +0100.
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Dodgin' Diamond 2
+Source: http://www.usebox.net/jjm/dd2
 
-Package maintenance adopted by Debian Games Team 
<pkg-games-de...@lists.alioth.debian.org> 
-on Thu, 13 Dec 2007
+Files: *
+Copyright: 2003-2004, Juan J. Martinez <j...@usebox.net>
+License: GPL-2+
 
-It was downloaded from http://www.usebox.net/jjm/dd2/
+Files: debian/*
+Copyright: 2006, Gürkan Sengün <gur...@linuks.mine.nu>
+           2007, Barry deFreese <bddeb...@comcast.net>
+           2013, Markus Koschany <a...@gambaru.de>
+License: GPL-2+
 
-Upstream Author: Juan J. Martinez <j...@usebox.net>
+License: GPL-2+
+ This program is free software; you can redistribute it and/or modify it
+ under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+ .
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this package; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 2 can be found in `/usr/share/common-licenses/GPL-2'.
 
-Copyright: Copyright (C) 2003,2004 Juan J. Martinez <j...@usebox.net>
 
-License:
-Released under the GNU GPL.
 
-    This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation; either version 2 of the License, or
-    (at your option) any later version.
-
-    This program is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License
-    along with this program; if not, write to the Free Software
-    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
-
-On Debian GNU/Linux systems, the complete text of the GNU General
-Public License can be found in `/usr/share/common-licenses/GPL'.
-

Modified: packages/trunk/dd2/debian/dodgindiamond2.desktop
===================================================================
--- packages/trunk/dd2/debian/dodgindiamond2.desktop    2013-03-25 05:59:56 UTC 
(rev 13977)
+++ packages/trunk/dd2/debian/dodgindiamond2.desktop    2013-03-29 00:15:57 UTC 
(rev 13978)
@@ -1,8 +1,11 @@
 [Desktop Entry]
+Version=1.0
 Type=Application
-Name=Dodgin Diamond 2
-GenericName=dodgindiamond2
+Name=Dodgin' Diamond 2
+GenericName=Arcade Game
 Exec=dodgindiamond2
+Icon=dodgindiamond2
 Terminal=false
 Categories=Game;ArcadeGame;
-Comment=Shoot 'em up
+Comment=Little shoot-'em-up arcade game for one or two player
+Keywords=arcade;game;shooter;action;space;

Added: packages/trunk/dd2/debian/images/dodgindiamond2.png
===================================================================
(Binary files differ)


Property changes on: packages/trunk/dd2/debian/images/dodgindiamond2.png
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: packages/trunk/dd2/debian/images/dodgindiamond2.xpm
===================================================================
--- packages/trunk/dd2/debian/images/dodgindiamond2.xpm                         
(rev 0)
+++ packages/trunk/dd2/debian/images/dodgindiamond2.xpm 2013-03-29 00:15:57 UTC 
(rev 13978)
@@ -0,0 +1,46 @@
+/* XPM */
+static char * dodgindiamonds2_xpm[] = {
+"24 25 18 1",
+"      c #000000",
+".     c #F05050",
+"+     c #C02000",
+"@     c #980000",
+"#     c #080808",
+"$     c #606068",
+"%     c #E0E8E0",
+"&     c #808890",
+"*     c #580000",
+"=     c #880000",
+"-     c #202838",
+";     c #404840",
+">     c #B0C0C0",
+",     c #CC33FF",
+"'     c #FF9FF3",
+")     c #FF0000",
+"!     c #FF6633",
+"~     c #FFCC33",
+"                        ",
+"                        ",
+"                        ",
+"           .+           ",
+"          ++@@          ",
+"          +##@          ",
+"       $  .#%+  $       ",
+"      +&  .#%+  &@      ",
+"     @.&@ .+@+ *&+*     ",
+"    @.+$@ .##+ *$@+*    ",
+"   =.+++$ .#%+ $@@@+*   ",
+"   =++++$-#;$#-$@@@@*   ",
+"   =+++++-.&$+-@@@@@*   ",
+"    =++++.+>$@+@@@@*    ",
+"    =++==.+>$@+**@@*    ",
+"     ==&&@+&$@*;;**     ",
+"      ;&&$>$$;-;;-     ,",
+"       ;;#;####--     ,'",
+"         $>$$;-       ,'",
+"         )!~~!)        ,",
+"          )!!)          ",
+"           ))           ",
+"                        ",
+"                        ",
+"                        "};

Modified: packages/trunk/dd2/debian/install
===================================================================
--- packages/trunk/dd2/debian/install   2013-03-25 05:59:56 UTC (rev 13977)
+++ packages/trunk/dd2/debian/install   2013-03-29 00:15:57 UTC (rev 13978)
@@ -1 +1,2 @@
-debian/dodgindiamond2.desktop usr/share/applications
+debian/dodgindiamond2.desktop   usr/share/applications
+debian/images/*                 usr/share/pixmaps

Modified: packages/trunk/dd2/debian/menu
===================================================================
--- packages/trunk/dd2/debian/menu      2013-03-25 05:59:56 UTC (rev 13977)
+++ packages/trunk/dd2/debian/menu      2013-03-29 00:15:57 UTC (rev 13978)
@@ -1,2 +1,6 @@
-?package(dodgindiamond2):needs="X11" section="Games/Action"\
-  title="Dodgin' Diamond 2" command="/usr/games/dodgindiamond2"
+?package(dodgindiamond2):needs="X11" \
+  section="Games/Action" \
+  title="Dodgin' Diamond 2" \
+  longtitle="Dodgin' Diamond 2 - an arcade shooter game" \
+  icon="/usr/share/pixmaps/dodgindiamond2.xpm" \
+  command="/usr/games/dodgindiamond2"

Modified: packages/trunk/dd2/debian/patches/001_configure.patch
===================================================================
--- packages/trunk/dd2/debian/patches/001_configure.patch       2013-03-25 
05:59:56 UTC (rev 13977)
+++ packages/trunk/dd2/debian/patches/001_configure.patch       2013-03-29 
00:15:57 UTC (rev 13978)
@@ -1,6 +1,15 @@
-diff -urN dd2-0.2.2.orig/configure.in dd2-0.2.2/configure.in
---- dd2-0.2.2.orig/configure.in        2007-08-14 14:57:10.000000000 -0400
-+++ dd2-0.2.2/configure.in     2008-01-03 17:56:33.000000000 -0500
+From: Debian Games Team <pkg-games-de...@lists.alioth.debian.org>
+Date: Fri, 29 Mar 2013 00:00:21 +0100
+Subject: 001_configure
+
+---
+ configure.in |    4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/configure.in b/configure.in
+index 70fddd1..95b2fe0 100644
+--- a/configure.in
++++ b/configure.in
 @@ -1,7 +1,9 @@
  dnl Process this file with autoconf to produce a configure script.
  AC_INIT(Makefile.am)

Modified: packages/trunk/dd2/debian/patches/01_update_readme.patch
===================================================================
--- packages/trunk/dd2/debian/patches/01_update_readme.patch    2013-03-25 
05:59:56 UTC (rev 13977)
+++ packages/trunk/dd2/debian/patches/01_update_readme.patch    2013-03-29 
00:15:57 UTC (rev 13978)
@@ -1,7 +1,16 @@
-diff -urN dd2-0.2.2.orig/README dd2-0.2.2/README
---- dd2-0.2.2.orig/README      2004-07-02 11:34:03.000000000 -0400
-+++ dd2-0.2.2/README   2008-01-03 12:09:47.000000000 -0500
-@@ -5,35 +5,10 @@
+From: Debian Games Team <pkg-games-de...@lists.alioth.debian.org>
+Date: Fri, 29 Mar 2013 00:00:21 +0100
+Subject: 01_update_readme
+
+---
+ README |   46 ++++------------------------------------------
+ 1 file changed, 4 insertions(+), 42 deletions(-)
+
+diff --git a/README b/README
+index cd38464..386c2ca 100644
+--- a/README
++++ b/README
+@@ -5,35 +5,10 @@ With sound & music where available.
  
  ** Required **
  
@@ -37,7 +46,7 @@
  ** Configuration **
  
  You can change player control, sound and graphic mode in
-@@ -44,15 +19,9 @@
+@@ -44,15 +19,9 @@ configuration changes.
  
  ** Keyboard **
  
@@ -54,17 +63,26 @@
  ** Joystick **
  
  Player 1: Joystick 1 (if available)
-@@ -106,7 +75,7 @@
+@@ -106,7 +75,7 @@ the programs does 'Segmentation Fault' at exit (UNIX).
  
   In order to use esd driver, execute in a bash alike shell:
  
 -      SDL_AUDIODRIVER="esd" dd2
-+      SDL_AUDIODRIVER="esd" dodgindiamon2
++ SDL_AUDIODRIVER="esd" dodgindiamon2
  
   Check the FAQ about using SDL: http://www.libsdl.org/faq.php.
  
-@@ -124,14 +93,7 @@
+@@ -116,7 +85,7 @@ the programs does 'Segmentation Fault' at exit (UNIX).
+  should use jscal (If available). Under Win32 you should
+  follow vendor instructions.
  
+-6. When I press alt+tab while playing on fullscreen mode all the graphics 
++6. When I press alt+tab while playing on fullscreen mode all the graphics
+ get corrupted when I continue playing the game (Win32).
+ 
+  I don't have a windows system to try to fix that. I think it's something
+@@ -124,14 +93,7 @@ get corrupted when I continue playing the game (Win32).
+ 
   By now the best way to avoid this problem is to not press alt+tab!
  
 -7. The game doesn't work on MAC OS X.

Modified: packages/trunk/dd2/debian/patches/02_makefile_scores.patch
===================================================================
--- packages/trunk/dd2/debian/patches/02_makefile_scores.patch  2013-03-25 
05:59:56 UTC (rev 13977)
+++ packages/trunk/dd2/debian/patches/02_makefile_scores.patch  2013-03-29 
00:15:57 UTC (rev 13978)
@@ -1,7 +1,16 @@
-diff -urN dd2-0.2.2.orig/src/data/Makefile.am dd2-0.2.2/src/data/Makefile.am
---- dd2-0.2.2.orig/src/data/Makefile.am        2004-05-17 10:41:00.000000000 
-0400
-+++ dd2-0.2.2/src/data/Makefile.am     2008-01-03 12:15:17.000000000 -0500
-@@ -5,5 +5,5 @@
+From: Debian Games Team <pkg-games-de...@lists.alioth.debian.org>
+Date: Fri, 29 Mar 2013 00:00:21 +0100
+Subject: 02_makefile_scores
+
+---
+ src/data/Makefile.am |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/data/Makefile.am b/src/data/Makefile.am
+index 7985380..13689d7 100644
+--- a/src/data/Makefile.am
++++ b/src/data/Makefile.am
+@@ -5,5 +5,5 @@ EXTRA_DIST = bgm1.xm bgm2.xm efx1.wav efx2.wav efx3.wav 
efx4.wav efx5.wav \
  efx6.wav efx7.wav efx8.wav gfx.bmp dd2.cfg game.act dd2-hiscore
  
  install-data-hook:

Modified: packages/trunk/dd2/debian/patches/03_hiscore_file.patch
===================================================================
--- packages/trunk/dd2/debian/patches/03_hiscore_file.patch     2013-03-25 
05:59:56 UTC (rev 13977)
+++ packages/trunk/dd2/debian/patches/03_hiscore_file.patch     2013-03-29 
00:15:57 UTC (rev 13978)
@@ -1,6 +1,15 @@
-diff -urN dd2-0.2.2.orig/src/data/dd2-hiscore dd2-0.2.2/src/data/dd2-hiscore
---- dd2-0.2.2.orig/src/data/dd2-hiscore        2004-05-18 11:41:22.000000000 
-0400
-+++ dd2-0.2.2/src/data/dd2-hiscore     2008-01-03 12:17:09.000000000 -0500
+From: Debian Games Team <pkg-games-de...@lists.alioth.debian.org>
+Date: Fri, 29 Mar 2013 00:00:21 +0100
+Subject: 03_hiscore_file
+
+---
+ src/data/dd2-hiscore |    4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/data/dd2-hiscore b/src/data/dd2-hiscore
+index a5b3cf8..72f52d4 100644
+--- a/src/data/dd2-hiscore
++++ b/src/data/dd2-hiscore
 @@ -1,8 +1,8 @@
  nobody:10:10000
 -nobody:9:9000

Modified: packages/trunk/dd2/debian/patches/04_hiscore_patches.patch
===================================================================
--- packages/trunk/dd2/debian/patches/04_hiscore_patches.patch  2013-03-25 
05:59:56 UTC (rev 13977)
+++ packages/trunk/dd2/debian/patches/04_hiscore_patches.patch  2013-03-29 
00:15:57 UTC (rev 13978)
@@ -1,6 +1,16 @@
-diff -urN dd2-0.2.2.orig/src/engine.h dd2-0.2.2/src/engine.h
---- dd2-0.2.2.orig/src/engine.h        2007-08-14 14:55:10.000000000 -0400
-+++ dd2-0.2.2/src/engine.h     2008-01-03 12:24:11.000000000 -0500
+From: Debian Games Team <pkg-games-de...@lists.alioth.debian.org>
+Date: Fri, 29 Mar 2013 00:00:21 +0100
+Subject: 04_hiscore_patches
+
+---
+ src/engine.h |    4 ++++
+ src/main.c   |    4 ++--
+ 2 files changed, 6 insertions(+), 2 deletions(-)
+
+diff --git a/src/engine.h b/src/engine.h
+index dc90f7e..2c112ae 100644
+--- a/src/engine.h
++++ b/src/engine.h
 @@ -25,6 +25,10 @@
  #define DD2_DATA="./data"
  #endif
@@ -12,10 +22,11 @@
  #include "SDL.h"
  #include "SDL_mixer.h"
  
-diff -urN dd2-0.2.2.orig/src/main.c dd2-0.2.2/src/main.c
---- dd2-0.2.2.orig/src/main.c  2007-08-14 14:59:42.000000000 -0400
-+++ dd2-0.2.2/src/main.c       2008-01-03 12:22:52.000000000 -0500
-@@ -296,7 +296,7 @@
+diff --git a/src/main.c b/src/main.c
+index fbc4820..ab310c4 100644
+--- a/src/main.c
++++ b/src/main.c
+@@ -296,7 +296,7 @@ main (int argc, char *argv[])
  #endif
  
        /* read hi-scores */
@@ -24,7 +35,7 @@
        if(!loadScore(buffer,hiscore))
                fprintf(stderr,"unable to read hi-scores, using defaults\n");
  
-@@ -463,7 +463,7 @@
+@@ -463,7 +463,7 @@ main (int argc, char *argv[])
        saveCFG(buffer,&conf);
  
        /* save hi-scores */

Modified: packages/trunk/dd2/debian/patches/series
===================================================================
--- packages/trunk/dd2/debian/patches/series    2013-03-25 05:59:56 UTC (rev 
13977)
+++ packages/trunk/dd2/debian/patches/series    2013-03-29 00:15:57 UTC (rev 
13978)
@@ -3,4 +3,3 @@
 02_makefile_scores.patch
 03_hiscore_file.patch
 04_hiscore_patches.patch
-

Modified: packages/trunk/dd2/debian/postinst
===================================================================
--- packages/trunk/dd2/debian/postinst  2013-03-25 05:59:56 UTC (rev 13977)
+++ packages/trunk/dd2/debian/postinst  2013-03-29 00:15:57 UTC (rev 13978)
@@ -1,4 +1,5 @@
 #!/bin/sh
+set -e
 
 SCOREDIR=/var/games/dodgindiamond2
 

Modified: packages/trunk/dd2/debian/postrm
===================================================================
--- packages/trunk/dd2/debian/postrm    2013-03-25 05:59:56 UTC (rev 13977)
+++ packages/trunk/dd2/debian/postrm    2013-03-29 00:15:57 UTC (rev 13978)
@@ -1,8 +1,9 @@
-#!/bin/sh -e
+#!/bin/sh
+set -e
 
 if test "$1" = "purge"; then
     rm -f /var/games/dodgindiamond2/hiscore
     rmdir --ignore-fail-on-non-empty /var/games/dodgindiamond2
 fi
-               
+
 #DEBHELPER#

Modified: packages/trunk/dd2/debian/rules
===================================================================
--- packages/trunk/dd2/debian/rules     2013-03-25 05:59:56 UTC (rev 13977)
+++ packages/trunk/dd2/debian/rules     2013-03-29 00:15:57 UTC (rev 13978)
@@ -1,94 +1,31 @@
 #!/usr/bin/make -f
-# -*- makefile -*-
-
-# Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 
-include /usr/share/quilt/quilt.make
+%:
+       dh $@ --parallel --with autoreconf
 
-# These are used for cross-compiling and for saving the configure script
-# from having to guess our platform (since we know it already)
-DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
-DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+override_dh_auto_configure:
+       dh_auto_configure -- \
+               --enable-alternate-fire-key \
+               --host=$(DEB_HOST_GNU_TYPE) \
+               --build=$(DEB_BUILD_GNU_TYPE) \
+               --prefix=/usr \
+               --mandir=\$${prefix}/share/man \
+               --bindir=\$${prefix}/games \
+               --infodir=\$${prefix}/share/info \
+               --datadir=\$${prefix}/share/games
 
-
-CFLAGS = -Wall -g
-
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
-       CFLAGS += -O0
-else
-       CFLAGS += -O2
-endif
-
-config.status: patch configure
-       dh_testdir
-
-ifneq "$(wildcard /usr/share/misc/config.sub)" ""
-       cp -f /usr/share/misc/config.sub config.sub
-endif
-ifneq "$(wildcard /usr/share/misc/config.guess)" ""
-       cp -f /usr/share/misc/config.guess config.guess
-endif
-
-       autoreconf -f -i
-       CFLAGS="$(CFLAGS) -Wl,-z,defs" ./configure --enable-alternate-fire-key 
--host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr 
--mandir=\$${prefix}/share/man --bindir=\$${prefix}/games 
--infodir=\$${prefix}/share/info --datadir=\$${prefix}/share/games
-
-
-build: build-stamp
-
-build-stamp:  config.status
-       dh_testdir
-       $(MAKE)
-       touch build-stamp
-
-clean: unpatch
-       dh_testdir
-       dh_testroot
-       rm -f build-stamp 
-       [ ! -f Makefile ] || $(MAKE) distclean
-
-       rm -f config.sub config.guess
-
-       dh_clean 
-
-install: build
-       dh_testdir
-       dh_testroot
-       dh_clean -k 
-       dh_installdirs
-       $(MAKE) install DESTDIR=$(CURDIR)/debian/dodgindiamond2
-       mv $(CURDIR)/debian/dodgindiamond2/usr/games/dd2 
$(CURDIR)/debian/dodgindiamond2/usr/games/dodgindiamond2
+override_dh_install:
+       dh_install
+       mv $(CURDIR)/debian/dodgindiamond2/usr/games/dd2 \
+               $(CURDIR)/debian/dodgindiamond2/usr/games/dodgindiamond2
        find $(CURDIR)/debian/dodgindiamond2/ -name "COPYING" -exec rm -rf {} \;
-       chmod 2755 $(CURDIR)/debian/dodgindiamond2/usr/games/dodgindiamond2
-       chgrp games $(CURDIR)/debian/dodgindiamond2/usr/games/dodgindiamond2
-       chgrp games $(CURDIR)/debian/dodgindiamond2/var/games/dodgindiamond2
-       rm 
$(CURDIR)/debian/dodgindiamond2/usr/share/games/dodgindiamond2/dd2-hiscore
+       rm -f 
$(CURDIR)/debian/dodgindiamond2/usr/share/games/dodgindiamond2/dd2-hiscore
        rm -rf $(CURDIR)/debian/dodgindiamond2/usr/share/games/doc
 
-
-# Build architecture-independent files here.
-binary-indep: build install
-# We have nothing to do by default.
-
-# Build architecture-dependent files here.
-binary-arch: build install
-       dh_testdir
-       dh_testroot
-       dh_installchangelogs ChangeLog
-       dh_installdocs
-       dh_installexamples
-       dh_install
-       dh_installmenu
-       dh_installman
-       dh_link
-       dh_strip
-       dh_compress
+override_dh_fixperms:
        dh_fixperms -Xdodgindiamond2
-       dh_installdeb
-       dh_shlibdeps
-       dh_gencontrol
-       dh_md5sums
-       dh_builddeb
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install 
+       chmod 2755 $(CURDIR)/debian/dodgindiamond2/usr/games/dodgindiamond2
+       chgrp games $(CURDIR)/debian/dodgindiamond2/usr/games/dodgindiamond2
+       chgrp games $(CURDIR)/debian/dodgindiamond2/var/games/dodgindiamond2

Added: packages/trunk/dd2/debian/source/format
===================================================================
--- packages/trunk/dd2/debian/source/format                             (rev 0)
+++ packages/trunk/dd2/debian/source/format     2013-03-29 00:15:57 UTC (rev 
13978)
@@ -0,0 +1 @@
+3.0 (quilt)

Added: packages/trunk/dd2/debian/source/include-binaries
===================================================================
--- packages/trunk/dd2/debian/source/include-binaries                           
(rev 0)
+++ packages/trunk/dd2/debian/source/include-binaries   2013-03-29 00:15:57 UTC 
(rev 13978)
@@ -0,0 +1,2 @@
+debian/images/dodgindiamond2.png
+debian/images/dodgindiamond2.xpm


_______________________________________________
Pkg-games-commits mailing list
Pkg-games-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

Reply via email to