From ca937dffa5c15f373ac9b96df6159614e715b470 Mon Sep 17 00:00:00 2001 From: stpohle Date: Tue, 29 Jul 2003 23:00:03 +0000 Subject: [PATCH] Debian package build configuration --- debian/README.Debian | 6 ++ debian/bomberclone.doc-base.EX | 22 ++++++ debian/bomberclone.postinst.debhelper | 3 + debian/bomberclone.postrm.debhelper | 3 + debian/bomberclone.prerm.debhelper | 6 ++ debian/bomberclone.substvars | 1 + debian/changelog | 6 ++ debian/compat | 1 + debian/control | 24 ++++++ debian/copyright | 16 ++++ debian/dirs | 4 + debian/docs | 3 + debian/files | 1 + debian/menu | 2 + debian/rules | 106 ++++++++++++++++++++++++++ 15 files changed, 204 insertions(+) create mode 100644 debian/README.Debian create mode 100644 debian/bomberclone.doc-base.EX create mode 100644 debian/bomberclone.postinst.debhelper create mode 100644 debian/bomberclone.postrm.debhelper create mode 100644 debian/bomberclone.prerm.debhelper create mode 100644 debian/bomberclone.substvars create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/dirs create mode 100644 debian/docs create mode 100644 debian/files create mode 100644 debian/menu create mode 100755 debian/rules diff --git a/debian/README.Debian b/debian/README.Debian new file mode 100644 index 0000000..6eada7b --- /dev/null +++ b/debian/README.Debian @@ -0,0 +1,6 @@ +bomberclone for Debian +---------------------- + +Own data will have to be put in /usr/share/games/bomberclone + + -- Steffen Pohle , Mon, 28 Jul 2003 21:41:46 +0200 diff --git a/debian/bomberclone.doc-base.EX b/debian/bomberclone.doc-base.EX new file mode 100644 index 0000000..08df3b7 --- /dev/null +++ b/debian/bomberclone.doc-base.EX @@ -0,0 +1,22 @@ +Document: bomberclone +Title: Debian bomberclone Manual +Author: +Abstract: This manual describes what bomberclone is + and how it can be used to + manage online manuals on Debian systems. +Section: unknown + +Format: debiandoc-sgml +Files: /usr/share/doc/bomberclone/bomberclone.sgml.gz + +Format: postscript +Files: /usr/share/doc/bomberclone/bomberclone.ps.gz + +Format: text +Files: /usr/share/doc/bomberclone/bomberclone.text.gz + +Format: HTML +Index: /usr/share/doc/bomberclone/html/index.html +Files: /usr/share/doc/bomberclone/html/*.html + + diff --git a/debian/bomberclone.postinst.debhelper b/debian/bomberclone.postinst.debhelper new file mode 100644 index 0000000..ea7876c --- /dev/null +++ b/debian/bomberclone.postinst.debhelper @@ -0,0 +1,3 @@ +# Automatically added by dh_installmenu +if [ "$1" = "configure" ] && [ -x /usr/bin/update-menus ]; then update-menus ; fi +# End automatically added section diff --git a/debian/bomberclone.postrm.debhelper b/debian/bomberclone.postrm.debhelper new file mode 100644 index 0000000..2b4be4f --- /dev/null +++ b/debian/bomberclone.postrm.debhelper @@ -0,0 +1,3 @@ +# Automatically added by dh_installmenu +if [ -x "`which update-menus 2>/dev/null`" ]; then update-menus ; fi +# End automatically added section diff --git a/debian/bomberclone.prerm.debhelper b/debian/bomberclone.prerm.debhelper new file mode 100644 index 0000000..2b32c56 --- /dev/null +++ b/debian/bomberclone.prerm.debhelper @@ -0,0 +1,6 @@ +# Automatically added by dh_installdocs +if [ "$1" = remove ] || [ "$1" = upgrade ] && \ + which install-docs >/dev/null 2>&1; then + install-docs -r bomberclone +fi +# End automatically added section diff --git a/debian/bomberclone.substvars b/debian/bomberclone.substvars new file mode 100644 index 0000000..b39ac30 --- /dev/null +++ b/debian/bomberclone.substvars @@ -0,0 +1 @@ +shlibs:Depends=libc6 (>= 2.3.1-1), libsdl-mixer1.2 (>= 1.2.5), libsdl1.2debian (>> 1.2.5-0) diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..a8c7077 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,6 @@ +bomberclone (0.10.0-1) unstable; urgency=low + + * Initial Release. + + -- Steffen Pohle Mon, 28 Jul 2003 21:41:46 +0200 + diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..b8626c4 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +4 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..0e3d226 --- /dev/null +++ b/debian/control @@ -0,0 +1,24 @@ +Source: bomberclone +Section: games +Priority: optional +Maintainer: Steffen Pohle +Build-Depends: debhelper (>> 4.0.0) +Standards-Version: 3.5.8 + +Package: bomberclone +Architecture: i386 +Depends: ${shlibs:Depends} ${misc:Depends} +Description: This is a Bomberman like game with Single and Networkplay + This is a Bomberman like game. You have to drop bombs which will be + explode after a while. With this bombs you have to try to kill the + other players. If you are the last player in the game you have won. + It's very easy to play. You can find some powerups to get more range + for your bombs and to drop more as just one bomb. + Supports + Network support over IPv4 and IPv6 + Singleplayer. + diffrent resolutions + tileset support + up to 8 players. + sound + diffrent gamefield sizes diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..1b62aa5 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,16 @@ +This package was debianized by Steffen Pohle on +Mon, 28 Jul 2003 21:41:46 +0200. + +It was downloaded from http://www.bomberclone.de + +Upstream Author(s): Steffen Pohle + +Copyright: +This software is copyright (c) 2003 by Steffen Pohle. + +You are free to distribute this software under the terms of +the GNU General Public License. +On Debian systems, the complete text of the GNU General Public +License can be found in /usr/share/common-licenses/GPL file. + + diff --git a/debian/dirs b/debian/dirs new file mode 100644 index 0000000..5994555 --- /dev/null +++ b/debian/dirs @@ -0,0 +1,4 @@ +usr/bin +usr/games +usr/share +usr/share/games diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..5502ed8 --- /dev/null +++ b/debian/docs @@ -0,0 +1,3 @@ +NEWS +README +TODO diff --git a/debian/files b/debian/files new file mode 100644 index 0000000..f3e113a --- /dev/null +++ b/debian/files @@ -0,0 +1 @@ +bomberclone_0.10.0-1_i386.deb games optional diff --git a/debian/menu b/debian/menu new file mode 100644 index 0000000..8ccd37e --- /dev/null +++ b/debian/menu @@ -0,0 +1,2 @@ +?package(bomberclone):needs=X11 section=Games/Arcade \ + title="BomberClone" command="/usr/games/bomberclone" diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..e9c013d --- /dev/null +++ b/debian/rules @@ -0,0 +1,106 @@ +#!/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 + + +# 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) + + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +config.status: configure + dh_testdir + # Add here commands to configure the package. + ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --bindir=/usr/games --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info + + +build: build-stamp + +build-stamp: config.status + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + #/usr/bin/docbook-to-man debian/bomberclone.sgml > bomberclone.1 + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + -$(MAKE) distclean +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 + + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/bomberclone. + $(MAKE) install DESTDIR=$(CURDIR)/debian/bomberclone + + +# 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_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installinfo +# dh_installman + dh_link + dh_strip +# dh_compress +# dh_fixperms +# dh_perl +# dh_python +# dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol +# dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install