--- stax-1.0.orig/config.c +++ stax-1.0/config.c @@ -375,7 +375,7 @@ read_config(); num_themes = 0; - for_each_file(datapath("*.dat"), FA_ARCH | FA_RDONLY, add_theme, 0); + for_each_file("*.dat", FA_ARCH | FA_RDONLY, add_theme, 0); if (num_themes == 0) { error("No themes were found! You can't play without em!", "Themes (*.dat) should be in the same directory as this binary", "Or in the directory STAX_DATA points to"); --- stax-1.0.orig/main.c +++ stax-1.0/main.c @@ -49,6 +49,7 @@ int quit = 0; argv0 = argv[0]; + chdir("/usr/share/games/stax/"); read_config(); if (!init()) { @@ -94,7 +95,7 @@ else set_volume(0, 0); - if ((dat = load_datafile(datapath("stax.dat"))) == NULL) { + if ((dat = load_datafile("stax.dat")) == NULL) { allegro_message("Error loading stax.dat\n"); return 0; } --- stax-1.0.orig/debian/copyright +++ stax-1.0/debian/copyright @@ -0,0 +1,11 @@ +This package was debianized by Eduard Bloch on +Thu, 12 Apr 2001 14:10:21 +0200 + +It was downloaded from http://www.cyberlink.bc.ca/~tmg/nooss/stax/index.html#download + +Upstream Author: Trent Gamblin + +Copyright: +This program is distributed under the GNU General Public License. +On Debian systems, the complete text of the GNU General Public License can +be found in the `/usr/share/common-licenses/GPL' file. --- stax-1.0.orig/debian/changelog +++ stax-1.0/debian/changelog @@ -0,0 +1,130 @@ +stax (1.0-13ubuntu5) saucy; urgency=low + + * Build-depend on liballegro4-dev instead of virtual liballegro4.2-dev. + + -- Adam Conrad Fri, 05 Jul 2013 13:48:11 -0600 + +stax (1.0-13ubuntu4) quantal; urgency=low + + * Rebuild for liballegro4.4. + + -- Colin Watson Fri, 10 Aug 2012 15:06:29 +0100 + +stax (1.0-13ubuntu3) gutsy; urgency=low + + * debian/control: Update maintainer fields according to debian- + maintainer-field spec. + + -- Martin Pitt Wed, 15 Aug 2007 08:10:15 +0000 + +stax (1.0-13ubuntu2) dapper; urgency=low + + * allegro-transition: update build-depends to liballegro4.2-dev. + (Closes: lp #33683) + + -- Stefan Potyra Thu, 23 Mar 2006 13:43:41 +0100 + +stax (1.0-13ubuntu1) dapper; urgency=low + + * Resynchronise with Debian. + + -- Loic Pefferkorn Sat, 10 Dec 2005 22:32:29 +0100 + +stax (1.0-13) unstable; urgency=low + + * yet another recompiled against a new Allegro version, this time really + uploaded and so closes: #331549. Set Build-Depends on liballegro4.2-dev. + + -- Eduard Bloch Sun, 13 Nov 2005 23:23:33 +0100 + +stax (1.0-12) unstable; urgency=low + + * recompilation against the new Allegro version (closes: #331549) + * formal updates: policy version, menu quotation, description format + + -- Eduard Bloch Tue, 4 Oct 2005 10:47:57 +0200 + +stax (1.0-11ubuntu1) hoary; urgency=low + + * added libxxf86dga-dev, libxxf86vm-dev to Build-Depends. + + -- Daniel Holbach Thu, 7 Apr 2005 01:18:48 +0200 + +stax (1.0-11) unstable; urgency=low + + * recompilation against the new Allegro version + + -- Eduard Bloch Thu, 22 Aug 2002 20:34:29 +0200 + +stax (1.0-10) unstable; urgency=low + + * recompilation against the stable Allegro version + + -- Eduard Bloch Fri, 18 Jan 2002 15:08:42 +0100 + +stax (1.0-9) unstable; urgency=low + + * recompilation with the fixed Allegro version. Closes: #122925 + + -- Eduard Bloch Sat, 8 Dec 2001 15:47:10 +0100 + +stax (1.0-8) unstable; urgency=low + + * recompilation for the new Allegro branch + + -- Eduard Bloch Wed, 21 Nov 2001 23:16:56 +0100 + +stax (1.0-7) unstable; urgency=low + + * recompilation for the new Allegro + + -- Eduard Bloch Wed, 17 Oct 2001 20:45:00 +0200 + +stax (1.0-6) unstable; urgency=low + + * recompiled with the new allegro packages, closes: #115261 + * droped UPX crap + * cosmetical changes to appease lintian + + -- Eduard Bloch Thu, 11 Oct 2001 18:48:33 +0200 + +stax (1.0-5) unstable; urgency=low + + * changed Build-Depends: to build with allegro3937 + + -- Eduard Bloch Mon, 30 Jul 2001 23:08:18 +0200 + +stax (1.0-4) unstable; urgency=low + + * removed Build-Depends, the breakage was not noticed because of broken + dpkg-dev + + -- Eduard Bloch Wed, 20 Jun 2001 21:41:11 +0200 + +stax (1.0-3) unstable; urgency=low + + * hacked chdir into main.c, making shell wrapper obsolete, so removed it + * set Build-Depends more accurate, closes: #99448 + + -- Eduard Bloch Tue, 19 Jun 2001 09:09:03 +0200 + +stax (1.0-2) unstable; urgency=low + + * removed my changes from upstream source. there are more problems + with paths than I expected previously. + * placed binary in /usr/lib/games directory, wrote a shell wrapper to run + it change to the dat directory an run the game from there. Ensures + FHS compliancy and closes: #94098 + * changed menu entry to Tetris-like + * uses new allegro3936 packages + * uses dh-upx where possible + + -- Eduard Bloch Mon, 16 Apr 2001 17:29:46 +0200 + +stax (1.0-1) unstable; urgency=low + + * Initial Release. + * hacked source to use our data paths + * written a small manpage + + -- Eduard Bloch Thu, 12 Apr 2001 13:19:57 +0200 --- stax-1.0.orig/debian/rules +++ stax-1.0/debian/rules @@ -0,0 +1,73 @@ +#!/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 + +# This is the debhelper compatability version to use. +export DH_COMPAT=3 + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + + + touch configure-stamp + +build: configure-stamp build-stamp +build-stamp: + dh_testdir + + # Add here commands to compile the package. + $(MAKE) linux + #/usr/bin/docbook-to-man debian/stax.sgml > stax.1 + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + -$(MAKE) clean + + dh_clean -pstax + +install: build + dh_testdir -pstax + dh_testroot -pstax + dh_clean -k -pstax + dh_installdirs -pstax usr/share/games/stax usr/games + + # Add here commands to install the package into debian/tmp. + install -m755 `pwd`/stax `pwd`/debian/stax/usr/games/stax + cp -a `pwd`/*.dat `pwd`/debian/stax/usr/share/games/stax/ +# install -m755 `pwd`/debian/stax.sh `pwd`/debian/stax/usr/games/stax +# dh_link -pstax /usr/lib/games/stax/stax /usr/share/games/stax/stax + +# 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 -pstax + dh_testroot -pstax + dh_installdocs -pstax + dh_installmenu -pstax -Pdebian/stax + dh_installmanpages -pstax + dh_installchangelogs -pstax + dh_strip -pstax + dh_compress -pstax + dh_fixperms -pstax + dh_installdeb -pstax + dh_shlibdeps -pstax + dh_gencontrol -pstax + dh_md5sums -pstax + dh_builddeb -pstax + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- stax-1.0.orig/debian/stax.6 +++ stax-1.0/debian/stax.6 @@ -0,0 +1,32 @@ +.TH STAX 6 "April 12, 2001" +.SH NAME +stax \- Stax is a collection of puzzle games. +.SH SYNOPSIS +.B stax +.SH HOW TO PLAY +The object of the games is basically to get rid of the blocks as fast +as possible and not let them rise to the top. To get rid of blocks, get +a horizontal or vertical line of 3 or more of the same type of blocks +in a row. Usually, getting more than 3 in a row will make the other +players blocks rise faster, so go for big combos! + +A few keys work the same in every game: +.TP +.BI Escape +Quit (prompted) +.TP +.BI P +Pause (any key except P to unpause) +.TP +.BI Backspace +Screenshot (named stax????.pcx in current directory) +.TP +The configuration of all other keys is described in the README file in +the documentation directory of Stax (/usr/share/doc/stax/README.gz). + +.SH AUTHOR +This manual page was written by Eduard Bloch , +for the Debian GNU/Linux system (but may be used by others). +The upstream author of Stax is Trent Gamblin +.br + --- stax-1.0.orig/debian/dirs +++ stax-1.0/debian/dirs @@ -0,0 +1,2 @@ +usr/games +usr/share/games/stax --- stax-1.0.orig/debian/control +++ stax-1.0/debian/control @@ -0,0 +1,14 @@ +Source: stax +Section: games +Priority: optional +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Eduard Bloch +Build-Depends: liballegro4-dev (>= 2:4.0.2), debhelper (>= 3.0), libxxf86dga-dev, libxxf86vm-dev +Standards-Version: 3.6.2.1 + +Package: stax +Architecture: any +Depends: ${shlibs:Depends} +Description: collection of puzzle games similar to Tetris Attack + Another way of playing Tetris and some other cool puzzle games. Includes + multiplayer feature and supports themes. Enjoy! --- stax-1.0.orig/debian/stax.sh +++ stax-1.0/debian/stax.sh @@ -0,0 +1,3 @@ +#!/bin/sh +cd /usr/share/games/stax/ +./stax --- stax-1.0.orig/debian/docs +++ stax-1.0/debian/docs @@ -0,0 +1,2 @@ +README +TODO --- stax-1.0.orig/debian/menu +++ stax-1.0/debian/menu @@ -0,0 +1 @@ +?package(stax):needs="X11" section="Games/Tetris-like" title="Stax" command="/usr/games/stax"