powermanga (0.90-dfsg-2) debian-dir only changes

Summary

 debian/README.source                  |   58 +++++
 debian/changelog                      |  356 ++++++++++++++++++++++++++++++++++
 debian/compat                         |    1 
 debian/control                        |   30 ++
 debian/copyright                      |   20 +
 debian/patches/005_link_libm.diff     |   25 ++
 debian/patches/010_scoredir_path.diff |   12 +
 debian/patches/020_copyright.diff     |   11 +
 debian/patches/030_manpage_typo.diff  |   13 +
 debian/patches/series                 |    4 
 debian/powermanga-data.dirs           |    2 
 debian/powermanga-data.preinst        |   13 +
 debian/powermanga.desktop             |    9 
 debian/powermanga.dirs                |    3 
 debian/powermanga.menu                |    3 
 debian/powermanga.postinst            |   50 ++++
 debian/powermanga.postrm              |   30 ++
 debian/powermanga.xpm                 |   56 +++++
 debian/rules                          |   99 +++++++++
 debian/watch                          |    4 
 20 files changed, 799 insertions(+)

    
download this patch

Patch contents

--- powermanga-0.90-dfsg.orig/debian/powermanga.xpm
+++ powermanga-0.90-dfsg/debian/powermanga.xpm
@@ -0,0 +1,56 @@
+/* XPM */
+static char * powermanga_xpm[] = {
+"32 32 21 1",
+" 	c None",
+".	c #000000",
+"+	c #7F7F00",
+"@	c #FFFF00",
+"#	c #FF0000",
+"$	c #333333",
+"%	c #191919",
+"&	c #7F0000",
+"*	c #007F00",
+"=	c #00FF00",
+"-	c #00007F",
+";	c #7F007F",
+">	c #0000FF",
+",	c #B2B2B2",
+"'	c #00FFFF",
+")	c #007F7F",
+"!	c #4C4C4C",
+"~	c #CCCCCC",
+"{	c #E5E5E5",
+"]	c #7F7F7F",
+"^	c #999999",
+"                                ",
+"                                ",
+"                  ...           ",
+"                 .+@#.          ",
+"                 .@@@.    ...   ",
+"                 .+@+.   .+@#.  ",
+"                  ...    .@@@.  ",
+"                         .+@+.  ",
+"                          ...   ",
+"                                ",
+"                 $....$         ",
+"      ...... $...%$##&&$        ",
+"    .%******$&&#######&.   ...  ",
+"   .$======###########&%  .+@#. ",
+"  .$=====###&&&######&&.  .@@@. ",
+"  .*====##&----;&####&.   .+@+. ",
+"  .*===##&--->--;###&%.    ...  ",
+"  $*==###;-,'---;&#&&.          ",
+"   %**##&-')----&&#&&           ",
+"    %&##;-)----!&#&&.           ",
+"     $&#&-----;&&&&&.           ",
+"     !,##;---$&&&&&*.           ",
+"     !~{##&&&&&&&&=*.           ",
+"     %]^^###&&&&&==*.           ",
+"     .!]^]&&&&&&===*.           ",
+"      ..$$$&&&====*$            ",
+"       ....*======*.            ",
+"           .*====*$             ",
+"            .****%              ",
+"             ....               ",
+"                                ",
+"                                "};
--- powermanga-0.90-dfsg.orig/debian/powermanga-data.preinst
+++ powermanga-0.90-dfsg/debian/powermanga-data.preinst
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+set -e
+
+DOCDIR=/usr/share/doc/powermanga-data
+
+# Transition for foo/foo-data dependency swap
+if [ -L $DOCDIR ]; then
+  rm -f $DOCDIR
+fi
+
+#DEBHELPER#
+
--- powermanga-0.90-dfsg.orig/debian/powermanga.menu
+++ powermanga-0.90-dfsg/debian/powermanga.menu
@@ -0,0 +1,3 @@
+?package(powermanga):needs="X11" section="Games/Action" \
+  title="Powermanga" command="/usr/games/powermanga" \
+  icon="/usr/share/pixmaps/powermanga.xpm"
--- powermanga-0.90-dfsg.orig/debian/copyright
+++ powermanga-0.90-dfsg/debian/copyright
@@ -0,0 +1,20 @@
+This package was debianized by Sam Hocevar <sam@zoy.org> on
+Wed, 29 Nov 2000 04:36:47 +0100.
+
+It was downloaded from http://www.tlk.fr/jeu.php?ref=powli
+
+Upstream Authors: Jean-Michel Martin <jmm@tlk.fr>
+                  Bruno Ethvignot <bruno@tlk.fr>
+                  André Majorel <amajorel@teaser.fr>
+                  David Igreja <david@tlk.fr>
+                  Michel Dogniaux <ldream@caramail.com>
+                  Emmanuel Founaud
+                  Sam Hocevar <sam@zoy.org>
+
+Copyright: (c) 1999-2002 TLK Games <info@tlk.fr>
+
+powermanga is released under the GNU GPL license as free, open source
+software. Hopefully it will seem useful to someone. NO WARRANTY.
+
+On Debian GNU/Linux systems, the complete text of the GNU General
+Public License can be found in /usr/share/common-licenses/GPL.
--- powermanga-0.90-dfsg.orig/debian/README.source
+++ powermanga-0.90-dfsg/debian/README.source
@@ -0,0 +1,58 @@
+This package uses quilt to manage all modifications to the upstream
+source.  Changes are stored in the source package as diffs in
+debian/patches and applied during the build.
+
+To configure quilt to use debian/patches instead of patches, you want
+either to export QUILT_PATCHES=debian/patches in your environment
+or use this snippet in your ~/.quiltrc:
+
+    for where in ./ ../ ../../ ../../../ ../../../../ ../../../../../; do
+        if [ -e ${where}debian/rules -a -d ${where}debian/patches ]; then
+                export QUILT_PATCHES=debian/patches
+                break
+        fi
+    done
+
+To get the fully patched source after unpacking the source package, cd to
+the root level of the source package and run:
+
+    quilt push -a
+
+The last patch listed in debian/patches/series will become the current
+patch.
+
+To add a new set of changes, first run quilt push -a, and then run:
+
+    quilt new <patch>
+
+where <patch> is a descriptive name for the patch, used as the filename in
+debian/patches.  Then, for every file that will be modified by this patch,
+run:
+
+    quilt add <file>
+
+before editing those files.  You must tell quilt with quilt add what files
+will be part of the patch before making changes or quilt will not work
+properly.  After editing the files, run:
+
+    quilt refresh
+
+to save the results as a patch.
+
+Alternately, if you already have an external patch and you just want to
+add it to the build system, run quilt push -a and then:
+
+    quilt import -P <patch> /path/to/patch
+    quilt push -a
+
+(add -p 0 to quilt import if needed). <patch> as above is the filename to
+use in debian/patches.  The last quilt push -a will apply the patch to
+make sure it works properly.
+
+To remove an existing patch from the list of patches that will be applied,
+run:
+
+    quilt delete <patch>
+
+You may need to run quilt pop -a to unapply patches first before running
+this command.
--- powermanga-0.90-dfsg.orig/debian/changelog
+++ powermanga-0.90-dfsg/debian/changelog
@@ -0,0 +1,356 @@
+powermanga (0.90-dfsg-2) unstable; urgency=low
+
+  [ Cyril Brulebois ]
+  * Add missing context to the 020_copyright.diff patch, so as to prevent
+    an FTBFS with the new “3.0 (quilt)” source package format, thanks to
+    Raphaël Hertzog for the notice (Closes: #485021).
+
+  [ Barry deFreese ]
+  * Update my e-mail address.
+  * 005_link_libm.diff - Add -lm to LDFLAGS. (Closes: #556072).
+  * 030_manpage_typo.diff - Fix typo in manpage. (Closes: #455227).
+  * Update postinst to make powermanga setgid games. (Closes: #419572).
+    + Thanks to Javier Fernández-Sanguino Peña for the fix.
+  * Add dversionmangle in watch file to remove -dfsg version.
+  * Add set -e to postrm.
+  * Clean the quilt dir on clean.
+  * Add README.source for quilt.
+  * Bump Standards Version to 3.8.3. (No changes needed).
+
+ -- Barry deFreese <bdefreese@debian.org>  Fri, 13 Nov 2009 14:28:30 -0500
+
+powermanga (0.90-dfsg-1) unstable; urgency=low
+
+  [ Gonéri Le Bouder ]
+  * add desktop file, thanks Adrien Cunin (Closes: #402168)
+   - powermanga.xpm moved in /usr/share/pixmaps
+  * call dh_desktop to run update-desktop-database
+
+  [ Cyril Brulebois ]
+  * Added XS-Vcs-Svn and XS-Vcs-Browser fields in the control file.
+
+  [ Barry deFreese ]
+  * Bump debhelper build-dep version to match compat
+  * Fix substvar source:Version
+  * Make distclean not ignore errors
+  * Add watch file
+  * Add Homepage field in control
+  * Remove XS- from VCS fields in control
+  * New Upstream Release (Closes: #447415)
+    + Should now be dfsg free
+    + Adds joystick support (Closes: #442322)
+    + STILL NOT SURE ABOUT tlk.fnt
+  * Revert patches except fixing scoredir path and copyright for manpage
+  * Remove deprecated Encoding tag from desktop file
+  * Remove file extension from icon tag in desktop file
+  * Replace evil 'pwd' with $(CURDIR)
+  * Removing config.log config.status in clean target
+  * Convert copyright to UTF-8.
+  * Remove order/ dir from upstream tarball.
+  * Remove empty dirs from powermanga package.
+  * Bump Standards Version to 3.7.3
+
+ -- Barry deFreese <bddebian@comcast.net>  Wed, 19 Mar 2008 21:32:41 -0400
+
+powermanga (0.80-dfsg-1) unstable; urgency=high
+
+  * Repackage previous upload as non-native.
+  * Acknowledge NMU (Closes: #384223).
+  * debian/control:
+    + Add missing build-depends on zlib1g-dev (Closes: #397707).
+
+ -- Sam Hocevar (Debian packages) <sam+deb@zoy.org>  Thu,  9 Nov 2006 11:15:24 +0100
+
+powermanga (0.80+dfsg-1) unstable; urgency=medium
+
+  * Replaced non-free sounds with free replacements by
+    David Igreja from TLK (upstream):
+    http://linux.tlk.fr/games/Powermanga/download/sounds-powermanga-update-20060912.tgz
+    (Closes: #384223) (RC bugfix, urgency medium)
+
+ -- Moritz Muehlenhoff <jmm@debian.org>  Wed, 11 Oct 2006 00:14:34 +0200
+
+powermanga (0.80-3) unstable; urgency=low
+
+  * debian/rules:
+    + Manually install upstream's required text files (Closes: #367651).
+
+ -- Sam Hocevar (Debian packages) <sam+deb@zoy.org>  Thu, 18 May 2006 05:01:01 +0200
+
+powermanga (0.80-2) unstable; urgency=low
+
+  * debian/powermanga-data.preinst:
+    + Fixed a typo in the powermanga/powermanga-data symlink transition.
+    + Add set -e to trap errors.
+
+ -- Sam Hocevar (Debian packages) <sam+deb@zoy.org>  Tue, 16 May 2006 16:56:24 -0500
+
+powermanga (0.80-1) unstable; urgency=low
+
+  * New upstream release.
+  * This release merges a few Debian patches; updated debian/patches
+    accordingly.
+  * debian/powermanga.postrm:
+    + Send dpkg-statoverride output to /dev/null.
+  * debian/powermanga.postinst:
+    + Minor fix in the powermanga/powermanga-data symlink transition.
+
+ -- Sam Hocevar (Debian packages) <sam+deb@zoy.org>  Tue, 16 May 2006 19:11:19 +0200
+
+powermanga (0.79-5) unstable; urgency=low
+
+  * Moved packaging to the Debian Games Team.
+  * Use quilt for patch management.
+  * debian/control:
+    + Set policy to 3.7.2.
+    + Build-depend on quilt.
+  * debian/rules:
+    + Various rules cleanup.
+    + Fixed the powermanga/powermanga-data dependency loop.
+  * debian/copyright:
+    + Added missing names in the authors list.
+
+  * debian/patches/000_data_path.diff:
+    + New patch from old diff.gz -- fix data paths in autotools files.
+
+  * debian/patches/010_rebootstrap.diff:
+    + New patch from old diff.gz -- rebootstrap package.
+
+  * debian/patches/020_copyright.diff:
+    + New patch from old diff.gz -- fix my copyright in some files.
+
+  * debian/patches/020_warning.diff:
+    + New patch from old diff.gz -- fix a compilation warning.
+
+ -- Sam Hocevar (Debian packages) <sam+deb@zoy.org>  Tue, 16 May 2006 01:34:47 +0200
+
+powermanga (0.79-4) unstable; urgency=low
+
+  * debian/control:
+    + Set policy to 3.6.2.1.
+    + Build-depend on libxxf86dga-dev, libxxf86vm-dev instead of
+      xlibs-static-dev (Closes: #323905).
+  * src/linuxroutines.cpp:
+    + Removed a useless cast from void* to int (Closes: #287922).
+
+ -- Sam Hocevar (Debian packages) <sam+deb@zoy.org>  Wed, 24 Aug 2005 14:12:38 +0200
+
+powermanga (0.79-3) unstable; urgency=low
+
+  * debian/control:
+    + Reverted the libxt-dev build dependency and hardcoded X11 path. I will
+      fix this properly when I have enough bandwidth for pbuilder.
+
+ -- Sam Hocevar (Debian packages) <sam+deb@zoy.org>  Mon,  2 Aug 2004 10:42:48 +0200
+
+powermanga (0.79-2) unstable; urgency=low
+
+  * src/gfxroutines.cpp:
+    + Fixed a patch badly backported from 0.78 (Closes: #262857).
+  * debian/control:
+    + Build-depend on libxt-dev, which we don't actually use, but which
+      configure needs when checking for X libraries (Closes: #262856).
+
+ -- Sam Hocevar (Debian packages) <sam+deb@zoy.org>  Mon,  2 Aug 2004 08:45:58 +0200
+
+powermanga (0.79-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Sam Hocevar (Debian packages) <sam+deb@zoy.org>  Sun,  1 Aug 2004 19:36:37 +0200
+
+powermanga (0.78-6) unstable; urgency=low
+
+  * debian/control:
+    + Set policy to 3.6.1.1.
+    + Build-depend on libx11-dev, libxext-dev, xlibs-static-dev instead of
+      xlibs-dev.
+    + Build-depend on debhelper (>= 4.0).
+  * debian/powermanga.menu:
+    + Quoted strings where appropriate.
+
+ -- Sam Hocevar (Debian packages) <sam+deb@zoy.org>  Thu, 29 Jul 2004 18:23:16 +0200
+
+powermanga (0.78-5) unstable; urgency=low
+
+  * debian/rules:
+    + The hiscore location changed; fixed installation (Closes: #218253).
+
+ -- Sam Hocevar (Debian packages) <sam+deb@zoy.org>  Thu, 30 Oct 2003 10:37:14 +0100
+
+powermanga (0.78-4) unstable; urgency=low
+
+  * debian/control:
+    + Minor enhancement in the short description.
+
+ -- Sam Hocevar (Debian packages) <sam+deb@zoy.org>  Mon, 27 Oct 2003 20:36:15 +0100
+
+powermanga (0.78-3) unstable; urgency=low
+
+  * debian/control:
+    + Set policy to 3.6.1.0.
+    + Wrote more meaningful long descriptions (Closes: #209859).
+
+ -- Sam Hocevar (Debian packages) <sam+deb@zoy.org>  Thu,  2 Oct 2003 15:27:08 +0200
+
+powermanga (0.78-2) unstable; urgency=low
+
+  * src/Makefile.am: Fixed the scorefile location (Closes: #203248).
+
+ -- Sam Hocevar (Debian packages) <sam+deb@zoy.org>  Tue, 29 Jul 2003 15:36:30 +0200
+
+powermanga (0.78-1) unstable; urgency=low
+
+  * New upstream release.
+    + Includes the Debian cross-platform C port.
+    + Fully uses autoconf/automake.
+    + Uses SDL_mixer instead of libseal, which fixes problems with sound
+      systems not supported by libseal (Closes: #129062, #161255).
+  * debian/control:
+    + Added a build dependency to libsdl1.2-dev.
+    + Changed build dependency from libseal-dev to libsdl-mixer1.2-dev.
+    + Set policy to 3.6.0. No changes required.
+    + Updated debhelper build-dependency to (>= 3.4.4) because we now
+      use debian/compat.
+    + Use ${misc:Depends} everywhere.
+  * debian/rules:
+    + Removed many compilation flags that are not needed any more.
+    + Added usual touch magic to avoid autotools timestamp issues.
+  * debian/docs:
+    + Removed README from the packages, it only contains installation
+      instructions.
+
+ -- Sam Hocevar (Debian packages) <sam+deb@zoy.org>  Tue,  1 Jul 2003 23:36:44 +0200
+
+powermanga (0.74-6) unstable; urgency=low
+
+  * Removed hardcoded calls to g++-3.2 (Closes: #196274).
+  * debian/control:
+    + Set policy to 3.5.10.
+    + Removed the leading "a" in the package description.
+
+ -- Sam Hocevar (Debian packages) <sam+deb@zoy.org>  Fri,  6 Jun 2003 00:37:23 +0200
+
+powermanga (0.74-5) unstable; urgency=low
+
+  * Removed all x86-only gcc flags from the Makefile.
+
+ -- Samuel Hocevar <sam@zoy.org>  Wed, 23 Apr 2003 05:10:26 +0200
+
+powermanga (0.74-4) unstable; urgency=low
+
+  * Wrote routines.cpp which is a C version of assembler.S. Only tested on
+    my x86, colour palette is probably broken on big-endian architectures,
+    and certainly broken on 64 bits CPUs.
+  * The powermanga package is now Architecture: any.
+
+ -- Samuel Hocevar <sam@zoy.org>  Sat, 15 Mar 2003 20:30:11 +0100
+
+powermanga (0.74-3) unstable; urgency=low
+
+  * "But how will I know when I have received enlightenment?" asked the novice.
+    "Your program will then run correctly," replied the master.
+  * Complete, total, absolute fix of the dpkg-statoverride brokenness. The
+    high-score files can now be owned by root, the main binary needs not be
+    setgid games in the package, and postinst/postrm leave the statoverride
+    settings like they should be. And we handle upgrades from old broken
+    versions of the package.
+  * We remove score files upon package purge.
+  * Bumped build-dependency on debhelper (>=3.0).
+
+ -- Samuel Hocevar <sam@zoy.org>  Sat, 15 Mar 2003 20:30:11 +0100
+
+powermanga (0.74-2) unstable; urgency=low
+
+  * Updated standards version.
+  * Added debhelper token to maintainer scripts.
+  * Fixed a big memory leak in gardiens.cpp that was eating 64 memory slots
+    on each new game and every 4 levels (Closes: #156265).
+  * Fixed a minor memory leak in courbe.cpp and grille.cpp.
+  * Added missing close() calls in error handling in linuxroutines.cpp.
+  * CXXFLAGS is now gcc3.2 compliant.
+  * Redesigned the icon so that it only uses the 24 Debian colours.
+
+ -- Samuel Hocevar <sam@zoy.org>  Sat, 15 Mar 2003 20:30:11 +0100
+
+powermanga (0.74-1) unstable; urgency=low
+
+  * New upstream version, includes latest Debian patches.
+  * Added year to debian/copyright (Closes: #159430).
+  * Fixed minor typo in debian/changelog (Closes: #159432).
+  * postinst now removes overrides (Closes: #161860).
+  * Makefile now uses gcc 3.2.
+  * Resized icon to 32x32.
+
+ -- Samuel Hocevar <sam@zoy.org>  Sat,  8 Feb 2003 02:37:43 +0100
+
+powermanga (0.73-1) unstable; urgency=low
+
+  * New upstream version.
+  * Fixed a sound initialization problem that could make Powermanga randomly
+    silent when launched on a fast CPU.
+  * There are now three difficulty levels.
+  * Merged changes from joeyh's NMU (Closes: #155850).
+
+ -- Samuel Hocevar <sam@zoy.org>  Sun, 18 Aug 2002 01:55:55 +0200
+
+powermanga (0.71c-8.1) unstable; urgency=low
+
+  * NMU that makes the program sgid games so it can write to its high score
+    file. I also did a basic audit; nothing comprehensive. Closes: #126462
+
+ -- Joey Hess <joeyh@debian.org>  Wed,  7 Aug 2002 17:59:00 -0400
+
+powermanga (0.71c-8) unstable; urgency=low
+
+  * Spelling fixes in package description (Closes: #125263, #125264).
+  * Changed build-depend from xlib6g-dev to xlibs-dev.
+
+ -- Samuel Hocevar <sam@zoy.org>  Wed, 19 Dec 2001 17:41:43 +0100
+
+powermanga (0.71c-7) unstable; urgency=low
+
+  * Made all packages x86-only until all asm is removed, this time really
+    fixing the non-x86 bug (Closes: #90543).
+  * Updated user-contributed manpage (Closes: #91932).
+  * Fixed spelling in fntscrol.cpp (Closes: #100457).
+  * Fixed score files permissions (Closes: #85687).
+
+ -- Samuel Hocevar <sam@zoy.org>  Tue,  3 Jul 2001 17:00:18 +0200
+
+powermanga (0.71c-6) unstable; urgency=low
+
+  * Made the package x86-only until all asm is removed (Closes: #84026).
+  * We now unregister override files (Closes: #84815).
+
+ -- Samuel Hocevar <sam@zoy.org>  Mon,  5 Feb 2001 20:49:15 +0100
+
+powermanga (0.71c-5) unstable; urgency=low
+
+  * Fixed preinst script (Closes: #82672).
+
+ -- Samuel Hocevar <sam@zoy.org>  Wed, 17 Jan 2001 22:58:36 +0100
+
+powermanga (0.71c-4) unstable; urgency=low
+
+  * Rebuilt package using a fixed dpkg.
+
+ -- Samuel Hocevar <sam@zoy.org>  Tue, 16 Jan 2001 21:42:37 -0500
+
+powermanga (0.71c-3) unstable; urgency=low
+
+  * Added versioned dependency for debhelper.
+
+ -- Samuel Hocevar <sam@zoy.org>  Thu, 11 Jan 2001 00:07:08 +0100
+
+powermanga (0.71c-2) unstable; urgency=low
+
+  * Removed a useless Nautilius desktop file (Closes: #79533).
+
+ -- Samuel Hocevar <sam@zoy.org>  Wed, 20 Dec 2000 04:46:31 +0100
+
+powermanga (0.71c-1) unstable; urgency=low
+
+  * Initial Release (Closes: #78214).
+
+ -- Samuel Hocevar <sam@zoy.org>  Wed, 29 Nov 2000 04:36:47 +0100
--- powermanga-0.90-dfsg.orig/debian/compat
+++ powermanga-0.90-dfsg/debian/compat
@@ -0,0 +1 @@
+5
--- powermanga-0.90-dfsg.orig/debian/powermanga.desktop
+++ powermanga-0.90-dfsg/debian/powermanga.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Type=Application
+Name=Powermanga
+GenericName=PowerManga
+Comment=Play a vertical shoot 'em up game
+Icon=powermanga
+Exec=powermanga
+Terminal=false
+Categories=Game;ArcadeGame;
--- powermanga-0.90-dfsg.orig/debian/watch
+++ powermanga-0.90-dfsg/debian/watch
@@ -0,0 +1,4 @@
+version=3
+
+opts="dversionmangle=s/\-dfsg//" \
+http://linux.tlk.fr/games/Powermanga/download/powermanga-([\d.]+)\.tgz
--- powermanga-0.90-dfsg.orig/debian/powermanga.dirs
+++ powermanga-0.90-dfsg/debian/powermanga.dirs
@@ -0,0 +1,3 @@
+usr/games
+usr/share/doc
+var/games/powermanga
--- powermanga-0.90-dfsg.orig/debian/rules
+++ powermanga-0.90-dfsg/debian/rules
@@ -0,0 +1,99 @@
+#!/usr/bin/make -f
+
+#export DH_VERBOSE=1
+export DH_OPTIONS
+
+export DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+confflags = --prefix=/usr --mandir=/usr/share/man/man6
+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
+
+
+configure: configure-stamp
+configure-stamp:
+	dh_testdir
+	QUILT_PATCHES=debian/patches quilt push -a || test $$? = 2
+	touch configure.ac
+	touch aclocal.m4
+	touch configure
+	touch config.h.in
+	touch `find . -name Makefile.in`
+	./configure $(confflags)
+	touch configure-stamp
+
+build: configure-stamp build-stamp
+build-stamp:
+	dh_testdir
+	$(MAKE) PREFIX=$(CURDIR)/debian/powermanga
+	touch build-stamp
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp configure-stamp
+	[ ! -f Makefile ] || [ ! -f config.status ] || $(MAKE) distclean
+	QUILT_PATCHES=debian/patches quilt pop -a -R || test $$? = 2
+	rm -f config.log config.status
+	rm -rf .pc
+	dh_clean
+
+install: DH_OPTIONS=
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+	# Install package
+	DESTDIR=$(CURDIR)/debian/powermanga/ $(MAKE) install
+	# Remove the score files
+	rm -f debian/powermanga/var/games/powermanga/powermanga.hi-easy
+	rm -f debian/powermanga/var/games/powermanga/powermanga.hi
+	rm -f debian/powermanga/var/games/powermanga/powermanga.hi-hard
+	# Move files
+	mv debian/powermanga/usr/share/games/powermanga/* debian/powermanga-data/usr/share/games/powermanga
+	dh_install debian/powermanga.xpm /usr/share/pixmaps
+	dh_install debian/powermanga.desktop /usr/share/applications/
+	dh_install -p powermanga-data texts/*.txt texts/*.ini /usr/share/games/powermanga/texts
+	ln -s powermanga-data debian/powermanga/usr/share/doc/powermanga
+
+	#Remove empty dir
+	rm -rf debian/powermanga/usr/share/games
+
+binary-indep: build install
+	dh_testdir
+	dh_testroot
+	dh_installdocs -i
+	dh_installexamples -i
+	dh_installchangelogs  -i
+	dh_link -i
+	dh_compress -i
+	dh_fixperms -i
+	dh_installdeb -i
+	dh_gencontrol -i
+	dh_md5sums -i
+	dh_builddeb -i
+
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installmenu -a
+	dh_installcron -a
+	dh_installinfo -a
+	dh_strip -a
+	dh_link -a
+	dh_compress -a
+	dh_fixperms -a
+	dh_installdeb -a
+	dh_shlibdeps -a
+	dh_gencontrol -a
+	dh_md5sums -a
+	dh_builddeb -a
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-arch binary install configure
+
--- powermanga-0.90-dfsg.orig/debian/powermanga.postinst
+++ powermanga-0.90-dfsg/debian/powermanga.postinst
@@ -0,0 +1,50 @@
+#!/bin/sh
+
+set -e
+
+SCOREDIR=/var/games/powermanga
+DOCDIR=/usr/share/doc/powermanga
+
+case "$1" in
+  configure)
+    # Cancel my old stupid use of dpkg-statoverride
+    if [ "$1" = "configure" ] && [ "$2" != "" ] &&
+          dpkg --compare-versions "$2" le "0.79-5" &&
+          [ -x /usr/sbin/dpkg-statoverride ] &&
+          dpkg-statoverride --list "/usr/games/powermanga" >/dev/null
+    then
+        dpkg-statoverride --remove "/usr/games/powermanga"
+    fi
+    if !  dpkg-statoverride --list /usr/games/powermanga > /dev/null; then
+        chown root:games /usr/games/powermanga
+        chmod 2755 /usr/games/powermanga
+    fi
+
+    if !  dpkg-statoverride --list $SCOREDIR > /dev/null; then
+    # Fix permissions
+        chown root:games $SCOREDIR
+        chmod 2755 $SCOREDIR
+    fi
+    for x in hi-easy hi hi-hard; do
+      test -f $SCOREDIR/powermanga.$x || touch $SCOREDIR/powermanga.$x
+      chown root:games $SCOREDIR/powermanga.$x
+      chmod 0664 $SCOREDIR/powermanga.$x
+    done
+    # Transition for foo/foo-data dependency swap
+    if [ -d $DOCDIR -a ! -L $DOCDIR ]; then
+      rmdir --ignore-fail-on-non-empty $DOCDIR
+      if [ ! -d $DOCDIR ]; then
+        ln -s powermanga-data $DOCDIR
+      fi
+    fi
+    ;;
+  abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+  *)
+    echo "postinst called with unknown argument \`$1'" >&2
+    exit 1
+    ;;
+esac
+
+#DEBHELPER#
+
--- powermanga-0.90-dfsg.orig/debian/control
+++ powermanga-0.90-dfsg/debian/control
@@ -0,0 +1,30 @@
+Source: powermanga
+Section: games
+Priority: optional
+Maintainer: Debian Games Team <pkg-games-devel@lists.alioth.debian.org>
+Uploaders: Sam Hocevar (Debian packages) <sam+deb@zoy.org>, Barry deFreese <bdefreese@debian.org>
+Build-Depends: debhelper (>= 5.0), quilt, libx11-dev, libxext-dev, libxxf86dga-dev, libxxf86vm-dev, libsdl1.2-dev (>= 1.2.2-3.1), libsdl-mixer1.2-dev, zlib1g-dev
+Standards-Version: 3.8.3
+Homepage: http://linux.tlk.fr/games/Powermanga/
+Vcs-Svn: svn://svn.debian.org/svn/pkg-games/packages/trunk/powermanga/
+Vcs-Browser: http://svn.debian.org/wsvn/pkg-games/packages/trunk/powermanga/?op=log
+
+Package: powermanga
+Architecture: any
+Depends: powermanga-data (>= ${source:Version}), ${shlibs:Depends}, ${misc:Depends}
+Conflicts: suidmanager (<< 0.50)
+Description: vertical shoot 'em up with colourful 3D graphics
+ Powermanga is a shoot 'em up with 60 different enemies, 40 meteors, numerous
+ weapons, many end of level baddies, spaceship power-ups and lots of other
+ surprises.
+
+Package: powermanga-data
+Architecture: all
+Depends: ${misc:Depends}
+Description: graphics and audio data for powermanga
+ Powermanga is a shoot 'em up with 60 different enemies, 40 meteors, numerous
+ weapons, many end of level baddies, spaceship power-ups and lots of other
+ surprises.
+ .
+ This package contains the architecture-independent data for powermanga. For
+ more information, see the powermanga package.
--- powermanga-0.90-dfsg.orig/debian/powermanga-data.dirs
+++ powermanga-0.90-dfsg/debian/powermanga-data.dirs
@@ -0,0 +1,2 @@
+usr/share/doc
+usr/share/games/powermanga/texts
--- powermanga-0.90-dfsg.orig/debian/powermanga.postrm
+++ powermanga-0.90-dfsg/debian/powermanga.postrm
@@ -0,0 +1,30 @@
+#! /bin/sh
+set -e
+
+# These ones are not needed anymore. Make sure they disappear forever
+if dpkg-statoverride --list /var/games/powermanga >/dev/null; then
+  dpkg-statoverride --remove /var/games/powermanga >/dev/null
+fi
+if dpkg-statoverride --list /var/games/powermanga/ >/dev/null 2>&1; then
+  dpkg-statoverride --remove /var/games/powermanga/ >/dev/null 2>&1
+fi
+
+case "$1" in
+  purge|remove)
+    if dpkg-statoverride --list /usr/games/powermanga >/dev/null; then
+      dpkg-statoverride --remove /usr/games/powermanga
+    fi
+    for x in hi-easy hi hi-hard; do
+      rm -f /var/games/powermanga/powermanga.$x
+    done
+    ;;
+  upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+    ;;
+  *)
+    echo "postrm called with unknown argument \`$1'" >&2
+    exit 1
+    ;;
+esac
+
+#DEBHELPER#
+
--- powermanga-0.90-dfsg.orig/debian/patches/series
+++ powermanga-0.90-dfsg/debian/patches/series
@@ -0,0 +1,4 @@
+005_link_libm.diff
+010_scoredir_path.diff
+020_copyright.diff
+030_manpage_typo.diff
--- powermanga-0.90-dfsg.orig/debian/patches/005_link_libm.diff
+++ powermanga-0.90-dfsg/debian/patches/005_link_libm.diff
@@ -0,0 +1,25 @@
+Index: powermanga-0.90-dfsg/configure.ac
+===================================================================
+--- powermanga-0.90-dfsg.orig/configure.ac	2009-11-13 14:46:56.000000000 -0500
++++ powermanga-0.90-dfsg/configure.ac	2009-11-13 14:48:55.000000000 -0500
+@@ -14,6 +14,7 @@
+ dnl  Default flags
+ #CXXFLAGS="-O3 -Wall -g"
+ CFLAGS="-O3 -Wall -std=c99"
++LDFLAGS="-lm"
+ 
+ dnl  Check for X
+ AC_PATH_X
+Index: powermanga-0.90-dfsg/configure
+===================================================================
+--- powermanga-0.90-dfsg.orig/configure	2009-11-13 14:48:58.000000000 -0500
++++ powermanga-0.90-dfsg/configure	2009-11-13 14:49:34.000000000 -0500
+@@ -3413,7 +3413,7 @@
+ 
+ #CXXFLAGS="-O3 -Wall -g"
+ CFLAGS="-O3 -Wall -std=c99"
+-
++LDFLAGS="-lm"
+ 
+ ac_ext=c
+ ac_cpp='$CPP $CPPFLAGS'
--- powermanga-0.90-dfsg.orig/debian/patches/020_copyright.diff
+++ powermanga-0.90-dfsg/debian/patches/020_copyright.diff
@@ -0,0 +1,11 @@
+--- a/powermanga.6
++++ b/powermanga.6
+@@ -143,7 +143,7 @@
+ .I /usr/share/doc/powermanga/copyright
+ for details.
+ .br
+-This manual page was written by Jeronimo Pellegrini <pellegrini@mpcnet.com.br>, based on the previous one by Samuel Hocevar <sam@zoy.org>, for the Debian GNU/Linux system (but may be used by others).
++This manual page was written by Jeronimo Pellegrini <pellegrini@mpcnet.com.br>, based on the previous one by Sam Hocevar <sam@zoy.org>, for the Debian GNU/Linux system (but may be used by others).
+ 
+ 
+ 
--- powermanga-0.90-dfsg.orig/debian/patches/010_scoredir_path.diff
+++ powermanga-0.90-dfsg/debian/patches/010_scoredir_path.diff
@@ -0,0 +1,12 @@
+diff -urN powermanga-0.90.orig/src/Makefile.in powermanga-0.90/src/Makefile.in
+--- powermanga-0.90.orig/src/Makefile.in	2007-09-04 04:41:04.000000000 -0400
++++ powermanga-0.90/src/Makefile.in	2007-11-30 14:00:20.000000000 -0500
+@@ -221,7 +221,7 @@
+ target_os = @target_os@
+ target_vendor = @target_vendor@
+ gamesdir = $(prefix)/games
+-scoredir = /var/games
++scoredir = /var/games/powermanga
+ score = powermanga.hi
+ powermanga_SOURCES = $(SOURCES_MAIN) $(SOURCES_EXTRA)
+ #powermanga_CXXFLAGS = -DPREFIX=\"$(prefix)\" -DSCOREFILE=\"$(scoredir)/$(score)\" @XLIB_CFLAGS@ @SDL_CFLAGS@
--- powermanga-0.90-dfsg.orig/debian/patches/030_manpage_typo.diff
+++ powermanga-0.90-dfsg/debian/patches/030_manpage_typo.diff
@@ -0,0 +1,13 @@
+Index: powermanga-0.90-dfsg/powermanga.6
+===================================================================
+--- powermanga-0.90-dfsg.orig/powermanga.6	2009-11-13 14:57:17.000000000 -0500
++++ powermanga-0.90-dfsg/powermanga.6	2009-11-13 14:57:28.000000000 -0500
+@@ -74,7 +74,7 @@
+ .B \--version
+ prints version information and exit
+ .TP
+-.B \---window
++.B \--window
+ windowed mode (full screen by default)
+ .TP
+ .B \--2x