| 1 | # Description: Modular game in ascii to control a team of fighters |
| 2 | # URL: http://sourceforge.net/projects/warena-game/ |
| 3 | # Maintainer: Victor Martinez, pitillo at ono dot com |
| 4 | # Arch Maintainer: CRUX-ARM System Team, devel@crux-arm.nu |
| 5 | # Depends on: ncurses |
| 6 | |
| 7 | name=warena-game |
| 8 | version=0.3 |
| 9 | release=2 |
| 10 | source=(http://downloads.sourceforge.net/project/warena-game/warena-game/Old/arena_0.3A.tar.gz \ |
| 11 | Makefile.patch) |
| 12 | |
| 13 | build() { |
| 14 | cd arena |
| 15 | patch -p0 -i $SRC/Makefile.patch |
| 16 | make CC="$CC" |
| 17 | install -d $PKG/usr/{share/warena/data,bin} |
| 18 | install -D -m 0755 arena $PKG/usr/share/warena/arena |
| 19 | mv data/* $PKG/usr/share/warena/data |
| 20 | cat > $PKG/usr/bin/arena <<EOF |
| 21 | #!/bin/bash |
| 22 | |
| 23 | cd /usr/share/warena |
| 24 | ./arena \$@ |
| 25 | |
| 26 | # End of file |
| 27 | EOF |
| 28 | chmod +x $PKG/usr/bin/arena |
| 29 | } |