debian/0000755000000000000000000000000012257612133007170 5ustar debian/changelog0000644000000000000000000000517112257612133011046 0ustar pachi (1:1.0-7) unstable; urgency=low * Cleaned up Debian patches, closes: #643236. * Updated build script. * Updated standards version. -- Martin A. Godisch Sat, 28 Dec 2013 19:11:37 +0100 pachi (1:1.0-6) unstable; urgency=low * (Partly) fixed dependencies. * Updated package to source format 3.0 (quilt). * Updated standards version. -- Martin A. Godisch Sat, 11 Sep 2010 23:53:12 +0200 pachi (1:1.0-5) unstable; urgency=low * Updated menu section. * Removed linda overrides file. -- Martin A. Godisch Sat, 14 Jul 2007 16:49:10 +0200 pachi (1:1.0-4) unstable; urgency=low * Fixed timestamps. * Fixed control file, closes: #432988. * Updated debian/rules. * Updated standards version. -- Martin A. Godisch Fri, 13 Jul 2007 21:45:05 +0200 pachi (1:1.0-3) unstable; urgency=low * Don't let pachi-data depend on pachi, closes: #339901. * Updated standards version, fixed debian/control, debian/copyright, debian/rules. -- Martin A. Godisch Sat, 19 Nov 2005 17:41:05 +0100 pachi (1:1.0-2) unstable; urgency=low * Make pachi-data depends on pachi, closes: #295128. * Fixed POSIX compliance of debian/rules. -- Martin A. Godisch Mon, 14 Feb 2005 06:02:45 +0100 pachi (1:1.0-1) unstable; urgency=low * New upstream release. * Minor fixes in debian/rules and debian/menu. -- Martin A. Godisch Wed, 28 Apr 2004 20:50:14 +0200 pachi (20031005-2) unstable; urgency=low * Splitted into binary and data package, closes: #233427. * debian/rules cleanup. -- Martin A. Godisch Wed, 18 Feb 2004 09:09:15 +0100 pachi (20031005-1) unstable; urgency=low * New upstream release. * Removed versioned build dependency and README file. * Updated package description and standards version. -- Martin A. Godisch Fri, 10 Oct 2003 14:13:36 +0200 pachi (20030420-1) unstable; urgency=low * New upstream release, closes: #183610. -- Martin A. Godisch Sun, 20 Apr 2003 12:51:35 +0200 pachi (20030224-2) unstable; urgency=low * Fixed backspace handling when reading the player's name. * Recompilation against new sdl-mixer1.2. * Tightened build-dependency. * Added Linda overrides file. * Removed CFLAGS from debian/rules. * Updated standards version. -- Martin A. Godisch Sun, 16 Mar 2003 07:35:00 +0100 pachi (20030224-1) unstable; urgency=low * Initial release, closes: #177611. -- Martin A. Godisch Tue, 25 Feb 2003 17:46:22 +0100 debian/control0000644000000000000000000000201612257527276010607 0ustar Source: pachi Section: games Priority: optional Maintainer: Martin A. Godisch Build-Depends: libsdl-mixer1.2-dev Standards-Version: 3.9.5 Homepage: http://dragontech.sourceforge.net/ Package: pachi Architecture: any Depends: pachi-data (= ${source:Version}), ${shlibs:Depends} Description: Platform game featuring Pachi el marciano Pachi came from Mars and crashlanded in our planet because of an accident with his U.F.O. . Pachi el marciano is a cool 2D platform game inspired by games from the 80s like Manic Miner, Jet set Willy, and others. Package: pachi-data Architecture: all Recommends: pachi Conflicts: pachi (<< 20031005-2) Description: Platform game featuring Pachi el marciano (data files) Pachi came from Mars and crashlanded in our planet because of an accident with his U.F.O. . Pachi el marciano is a cool 2D platform game inspired by games from the 80s like Manic Miner, Jet set Willy, and others. . This package contains the architecture-independent game data, sound and music files. debian/copyright0000644000000000000000000000217211442773755011142 0ustar This package was debianized by Martin Godisch on Sun, 20 Apr 2003. The sources were downloaded from http://prdownloads.sourceforge.net/dragontech/. Copyright (c) 2002-2003 Santiago Radeff Nicolas Radeff Peter Hajba 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. debian/menu0000644000000000000000000000015411442773755010074 0ustar ?package(pachi):needs="X11" section="Games/Action" \ title="Pachi el marciano" command="/usr/games/pachi" debian/pachi.60000644000000000000000000000057311442773755010365 0ustar .TH PACHI 6 "" "The Debian Project" "" . .SH NAME . Pachi \- Platform game featuring Pachi el marciano . .SH SYNOPSIS . .B pachi . .SH DESCRIPTION . Pachi came from Mars and crashlanded in our planet because of an accident with his U.F.O. . .SH AUTHORS . .nf Santiago Radeff , Nicolas Radeff , Peter Hajba .fi debian/postinst0000644000000000000000000000045411442773755011016 0ustar #!/bin/sh -e [ "$1" = configure ] || exit 0 if [ -x /usr/bin/update-menus ]; then update-menus fi SCOREFILE=/var/games/pachi/data/scores.dat if [ ! -e $SCOREFILE ]; then dd if=/dev/zero of=$SCOREFILE bs=170 count=1 2> /dev/null fi chown root:games $SCOREFILE chmod 0660 $SCOREFILE exit 0 debian/postrm0000644000000000000000000000020411442773755010450 0ustar #!/bin/sh -e if [ -x /usr/bin/update-menus ]; then update-menus fi if [ "$1" = purge ]; then rm -rf /var/games/pachi fi exit 0 debian/rules0000755000000000000000000000631312257610615010256 0ustar #!/usr/bin/make -f testdir = test -f src/faes.cpp && test -f debian/rules testroot = test x`whoami` = xroot # FOR AUTOCONF 2.13 ONLY ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE)) CONFFLAGS += $(DEB_HOST_GNU_TYPE) else CONFFLAGS += --host $(DEB_BUILD_GNU_TYPE) --build $(DEB_HOST_GNU_TYPE) endif CPPFLAGS = $(shell dpkg-buildflags --get CPPFLAGS) CXXFLAGS = $(shell dpkg-buildflags --get CXXFLAGS) LDFLAGS = $(shell dpkg-buildflags --get LDFLAGS) export CPPFLAGS export CXXFLAGS export LDFLAGS clean: $(testdir) rm -f build-stamp debian/files debian/substvars [ ! -f Makefile ] || $(MAKE) distclean rm -rf debian/pachi debian/pachi-data build: build-arch build-indep build-arch: build-stamp build-indep: build-stamp build-stamp: configure $(testdir) SCOREDIR=/var/games/pachi ./configure $(CONFFLAGS) --prefix=/usr --bindir=/usr/games $(MAKE) touch $@ binary: binary-arch binary-indep binary-arch: build $(testdir) $(testroot) rm -rf debian/pachi $(MAKE) install DESTDIR=$(CURDIR)/debian/pachi rm -rf debian/pachi/var/games/pachi/data/scores.dat \ debian/pachi/usr/share/pachi \ debian/pachi/usr/share/doc/pachi/ChangeLog \ debian/pachi/usr/share/doc/pachi/License.txt ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) strip -R .comment -R .note debian/pachi/usr/games/pachi endif install -D -p -m 0644 debian/menu debian/pachi/usr/share/menu/pachi install -D -p -m 0644 debian/pachi.6 debian/pachi/usr/share/man/man6/pachi.6 install -D -p -m 0644 debian/changelog debian/pachi/usr/share/doc/pachi/changelog.Debian install -D -p -m 0644 ChangeLog debian/pachi/usr/share/doc/pachi/changelog install -p -m 0644 debian/copyright debian/pachi/usr/share/doc/pachi install -D -p -m 0644 debian/control debian/pachi/DEBIAN/control install -p -m 0755 debian/postinst debian/postrm debian/pachi/DEBIAN gzip -9 debian/pachi/usr/share/doc/pachi/changelog* debian/pachi/usr/share/man/man6/pachi.6 cd debian/pachi && find usr -type f -print0 | xargs -0 md5sum > DEBIAN/md5sums dpkg-shlibdeps debian/pachi/usr/games/pachi dpkg-gencontrol -isp -ppachi -Pdebian/pachi chown -R root:root debian/pachi chmod -R go=u-w debian/pachi chown root:games debian/pachi/usr/games/pachi chmod 2755 debian/pachi/usr/games/pachi dpkg --build debian/pachi .. binary-indep: build $(testdir) $(testroot) rm -rf debian/pachi-data $(MAKE) install DESTDIR=$(CURDIR)/debian/pachi-data rm -rf debian/pachi-data/var \ debian/pachi-data/usr/games \ debian/pachi-data/usr/share/doc install -D -p -m 0644 debian/changelog debian/pachi-data/usr/share/doc/pachi-data/changelog.Debian install -D -p -m 0644 ChangeLog debian/pachi-data/usr/share/doc/pachi-data/changelog install -p -m 0644 debian/copyright debian/pachi-data/usr/share/doc/pachi-data install -D -p -m 0644 debian/control debian/pachi-data/DEBIAN/control gzip -9 debian/pachi-data/usr/share/doc/pachi-data/changelog* cd debian/pachi-data && find usr -type f -print0 | xargs -0 md5sum > DEBIAN/md5sums dpkg-gencontrol -isp -ppachi-data -Pdebian/pachi-data chown -R root:root debian/pachi-data chmod -R go=u-w debian/pachi-data dpkg --build debian/pachi-data .. .PHONY: clean build build-arch build-indep binary binary-arch binary-indep debian/source/0000755000000000000000000000000011442763375010502 5ustar debian/source/format0000644000000000000000000000001411442763375011710 0ustar 3.0 (quilt) debian/patches/0000755000000000000000000000000012257610410010613 5ustar debian/patches/series0000644000000000000000000000001412257610342012027 0ustar debian.diff debian/patches/debian.diff0000644000000000000000000001034012257610352012672 0ustar --- pachi-1.0.orig/configure +++ pachi-1.0/configure @@ -1564,7 +1564,6 @@ if eval "test \"`echo '$''{'ac_cv_lib_$a echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" -LIBS="-lpthread $LIBS" cat > conftest.$ac_ext <&6 @@ -1960,7 +1958,7 @@ if test "$enable_devel" = "yes"; then SCOREDIR="." else DATADIR="$datadir/$PACKAGE" - SCOREDIR="/var/lib/games/$PACKAGE" + SCOREDIR="/var/games/$PACKAGE" fi eval DATAPATH=`eval echo "$DATADIR"` --- pachi-1.0.orig/data/Makefile.in +++ pachi-1.0/data/Makefile.in @@ -229,8 +229,8 @@ maintainer-clean-generic clean mostlycle install-data-local: for file in $(score_DATA); do\ - chgrp $(group) $(scoredir)/$$file; \ - chmod $(perms) $(scoredir)/$$file; \ + chgrp $(group) $(DESTDIR)$(scoredir)/$$file; \ + chmod $(perms) $(DESTDIR)$(scoredir)/$$file; \ done # Tell versions [3.59,3.63) of GNU make to not export all variables. --- pachi-1.0.orig/src/input.c +++ pachi-1.0/src/input.c @@ -68,7 +68,7 @@ void hiscore_events() { namechar=0; for(n=0;n<10;n++) - playername[n] = '.'; + playername[n] = ' '; } } } @@ -167,7 +167,6 @@ void menu_events() void code_events() { - int n; SDL_Event event; while(SDL_PollEvent(&event)==1) @@ -304,7 +303,6 @@ void check_joystick_events(SDL_Event *ev void game_events() { - int n; SDL_Event event; Uint8 *keys; --- pachi-1.0.orig/src/output.c +++ pachi-1.0/src/output.c @@ -300,7 +300,6 @@ void showposter(int num) if(num==CEMETERY || num==CAVES || num==CASTLE || num==CASTLE+1 || num==LAB) { escape_exit=0; - SDL_Surface *temp; switch(num) { case CEMETERY: --- pachi-1.0.orig/src/text.c +++ pachi-1.0/src/text.c @@ -15,7 +15,7 @@ void print_text(SDL_Surface *font, SDL_S srctxt.y = 0; int linecounter = 0 ; // este contador se utiliza para saber en que linea imprimimos el texto int charpos = 0; - for(int charcounter = 0; charcounter <= (strlen(texto));charcounter++) + for(unsigned charcounter = 0; charcounter <= (strlen(texto));charcounter++) { int curchar=texto[charcounter]; if(curchar == 94) --- pachi-1.0.orig/src/game.c +++ pachi-1.0/src/game.c @@ -324,7 +324,7 @@ void chk_sequence() } } int object_is_here=0; // esta variable indica si el objeto que sigue en la secuencia esta en la pantalla actual - int bright_x, bright_y; // variables que indica en que posicion debe aparecer el brillo del proximo objeto a recoger + int bright_x = 0, bright_y = 0; // variables que indica en que posicion debe aparecer el brillo del proximo objeto a recoger for(n=0;n<5;n++) { if(mobject[(R_current-1)*5+n].seq==sequence) --- pachi-1.0.orig/src/gameover.c +++ pachi-1.0/src/gameover.c @@ -21,7 +21,6 @@ void show_hiscores() SDL_SetColorKey(scorefont,SDL_SRCCOLORKEY,SDL_MapRGB(scorefont->format,0,0,0)); SDL_SetColorKey(scorefont1,SDL_SRCCOLORKEY,SDL_MapRGB(scorefont1->format,0,0,0)); SDL_SetColorKey(scorefont1,SDL_SRCCOLORKEY,SDL_MapRGB(scorefont1->format,0,0,0)); - char plyername[]=" "; char diflevel[] =" "; print_text(scorefont1,screen,16,16,30, 55," PACHI EL MARCIANO TOP TEN ");//scorename[a]); print_text(scorefont1,screen,16,16,30, 95,"NAME STAGE TIME LEVEL SCORE ");//scorename[a]); @@ -103,7 +102,8 @@ void do_gameover() hiscore_events(); SDL_FillRect(screen,&box,SDL_MapRGB(screen->format,0,0,0)); print_text(scorefont1,screen,16,16,box.x+10,box.y+5,"ENTER YOUR NAME"); - print_text(scorefont1,screen,16,16,box.x+51+(namechar*16),box.y+29,"."); + for (int i = namechar; i < 10; i++) + print_text(scorefont1,screen,16,16,box.x+51+(i*16),box.y+29,"."); print_text(scorefont,screen,16,16,box.x+51,box.y+24,"%s",playername); SDL_Flip(screen); } --- pachi-1.0.orig/src/intro.c +++ pachi-1.0/src/intro.c @@ -52,7 +52,6 @@ void intro() double introtime=0; escape_exit=0; float title_alpha=0; - int title_done=0; int n=1; while(escape_exit==0) {