You are not logged in.
i got bored so heres a pkgbuild for zangband.. although i find the key combinations absolutely rediculous (id rather program brainf***), arch is missing any rogue like games from what i can see.. so heres one!
unfortunately its not the most well written piece of software!
im really hammering a square peg into a round hole here..
if anyone can make it neater.. PLEASE.. do so!!
youll need to do `mkdir ~/.config/zangband' before you play or you wont be able to save your character
ive never gotten the graphical tilesets to work, if anyone does, please let me know how.. ascii is no fun
PKGBUILD
#contributor: Adam Griffiths
pkgname=zangband
pkgver=2.7.4c
pkgrel=1
pkgdesc="Zangband is a variant of the game Angband which is descended from the game Moria which is in turn based upon the game Rogue."
url="http://www.zangband.org/"
depends=()
conflicts=()
backup=()
install=zangband.install
source=('ftp://ftp.sunet.se/pub/games/Angband/Variant/ZAngband/zangband-2.7.4c.tar.gz')
build()
{
# from http://www.zangband.org/Compiling.aspx#linux
cd $startdir/src/$pkgname/
cp makefile.std makefile
# zangband make file doesnt make parent directories.. peh
mkdir -p $startdir/pkg/usr/local/share/games
mkdir -p $startdir/pkg/usr/local/bin
make || return 1
make prefix=$startdir/pkg/usr/local install
# move the data to a respectable area
mkdir -p $startdir/pkg/usr/local/games
mv $startdir/pkg/usr/local/share/games/zangband $startdir/pkg/usr/local/games
rm -rf $startdir/pkg/usr/local/share
# make a small script to run zangband
# this script will require X11!! remove the '-mx11' parameter to allow for console
mv $startdir/pkg/usr/local/bin/zangband $startdir/pkg/usr/local/games/zangband/zangband
echo -e "#!/bin/bash n/usr/local/games/zangband/zangband -g -mx11 -dd=/usr/local/games/zangband/lib/data/ -db=/usr/local/games/zangband/lib/bone/ -de=/usr/local/games/zangband/lib/edit/ -dz=/usr/local/games/zangband/lib/script/ -da=/usr/local/games/zangband/lib/apex/ -df=/usr/local/games/zangband/lib/file/ -dh=/usr/local/games/zangband/lib/help/ -di=/usr/local/games/zangband/lib/info/ -dx=/usr/local/games/zangband/lib/xtra/ -ds=~/.config/zangband" > $startdir/pkg/usr/local/bin/zangband
# set our data / executable permissions
chmod -R 774 $startdir/pkg/usr/local/games/zangband
chgrp -R users $startdir/pkg/usr/local/games/zangband
# set our script permissions
chmod 774 $startdir/pkg/usr/local/bin/zangband
chgrp users $startdir/pkg/usr/local/bin/zangband
}
md5sums=('b638b05c3fd967e4e9fcd6dbc1e7deb6')
zangband.install
post_install() {
echo ""
echo "--------"
echo "Before playing, each different user of your system must perform a 'mkdir ~/.config/zangband' or they will not be able to save their character"
echo "--------"
echo ""
}
op=$1
shift
$op $
ive never used a .install file before so it may have some useless stuff in it.. ie the `op' stuff..
Offline