From 207b877fc07b2e8ad7d5cb5eecc03ea206650641 Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Mon, 25 Jan 2010 12:09:35 +0000 Subject: [PATCH] warena-game: Initial import (verified compilation). --- warena-game/.footprint | 28 ++++++++++++++++++++++++++++ warena-game/.md5sum | 2 ++ warena-game/Makefile.patch | 34 ++++++++++++++++++++++++++++++++++ warena-game/Pkgfile | 29 +++++++++++++++++++++++++++++ 4 files changed, 93 insertions(+) create mode 100644 warena-game/.footprint create mode 100644 warena-game/.md5sum create mode 100644 warena-game/Makefile.patch create mode 100644 warena-game/Pkgfile diff --git a/warena-game/.footprint b/warena-game/.footprint new file mode 100644 index 0000000..95d0450 --- /dev/null +++ b/warena-game/.footprint @@ -0,0 +1,28 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/arena +drwxr-xr-x root/root usr/share/ +drwxr-xr-x root/root usr/share/warena/ +-rwxr-xr-x root/root usr/share/warena/arena +drwxr-xr-x root/root usr/share/warena/data/ +drwxr-xr-x root/root usr/share/warena/data/default/ +-rwxr-xr-- root/root usr/share/warena/data/default/armor.dat +-rwxr-xr-- root/root usr/share/warena/data/default/players.dat +-rwxr-xr-- root/root usr/share/warena/data/default/spell.dat +-rwxr-xr-- root/root usr/share/warena/data/default/weapons.dat +drwxr-xr-x root/root usr/share/warena/data/fantasy/ +-rwxr-xr-- root/root usr/share/warena/data/fantasy/armor.dat +-rwxr-xr-- root/root usr/share/warena/data/fantasy/players.dat +-rwxr-xr-- root/root usr/share/warena/data/fantasy/spell.dat +-rwxr-xr-- root/root usr/share/warena/data/fantasy/weapons.dat +drwxr-xr-x root/root usr/share/warena/data/lessviolent/ +-rwxr-xr-- root/root usr/share/warena/data/lessviolent/armor.dat +-rwxr-xr-- root/root usr/share/warena/data/lessviolent/players.dat +-rwxr-xr-- root/root usr/share/warena/data/lessviolent/spell.dat +-rwxr-xr-- root/root usr/share/warena/data/lessviolent/weapons.dat +-rwxr-xr-- root/root usr/share/warena/data/syntax.txt +drwxr-xr-x root/root usr/share/warena/data/western/ +-rwxr-xr-- root/root usr/share/warena/data/western/armor.dat +-rwxr-xr-- root/root usr/share/warena/data/western/players.dat +-rwxr-xr-- root/root usr/share/warena/data/western/spell.dat +-rwxr-xr-- root/root usr/share/warena/data/western/weapons.dat diff --git a/warena-game/.md5sum b/warena-game/.md5sum new file mode 100644 index 0000000..c4cbabe --- /dev/null +++ b/warena-game/.md5sum @@ -0,0 +1,2 @@ +2870cfbb9777d6e41a0f7ffc9a3f106d Makefile.patch +59755321d691f665d1393f810005959e arena_0.3A.tar.gz diff --git a/warena-game/Makefile.patch b/warena-game/Makefile.patch new file mode 100644 index 0000000..8754c48 --- /dev/null +++ b/warena-game/Makefile.patch @@ -0,0 +1,34 @@ +--- Makefile.orig 2009-09-21 15:39:03.000000000 +0000 ++++ Makefile 2009-09-21 15:40:35.000000000 +0000 +@@ -3,24 +3,24 @@ + all: main + + main: main.o initialize.o draw.o fight.o players.o +- cc -lpanel --lncurses -lm fight.o main.o initialize.o draw.o players.o -o arena ++ $(CC) -lpanel --lncurses -lm fight.o main.o initialize.o draw.o players.o -o arena + + main.o: src/main.c +- gcc -c src/main.c ++ $(CC) -c src/main.c + + initialize.o: src/initialize.c +- gcc -c src/initialize.c ++ $(CC) -c src/initialize.c + + draw.o: src/draw.c +- gcc -c src/draw.c ++ $(CC) -c src/draw.c + + fight.o: src/fight.c +- gcc -c src/fight.c ++ $(CC) -c src/fight.c + + players.o: src/players.c +- gcc -c src/players.c ++ $(CC) -c src/players.c + full: +- gcc -lpanel -lncurses -lm src/main.c src/initialize.c src/draw.c src/fight.c src/players.c -o arena ++ $(CC) -lpanel -lncurses -lm src/main.c src/initialize.c src/draw.c src/fight.c src/players.c -o arena + + deps: main.o initialize.o draw.o fight.o players.o + diff --git a/warena-game/Pkgfile b/warena-game/Pkgfile new file mode 100644 index 0000000..c716e0a --- /dev/null +++ b/warena-game/Pkgfile @@ -0,0 +1,29 @@ +# Description: Modular game in ascii to control a team of fighters +# URL: http://sourceforge.net/projects/warena-game/ +# Maintainer: Victor Martinez, pitillo at ono dot com +# Arch Maintainer: CRUX-ARM System Team, crux-arm at mikeux dot dyndns dot org +# Depends on: ncurses + +name=warena-game +version=0.3 +release=2 +source=(http://downloads.sourceforge.net/project/warena-game/warena-game/Old/arena_0.3A.tar.gz \ + Makefile.patch) + +build() { + cd arena + patch -p0 -i $SRC/Makefile.patch + make CC="$CC" + install -d $PKG/usr/{share/warena/data,bin} + install -D -m 0755 arena $PKG/usr/share/warena/arena + mv data/* $PKG/usr/share/warena/data + cat > $PKG/usr/bin/arena <