#!/bin/sh CWD=`pwd` TMP=/tmp PKG=$TMP/package-nexuiz VERSION=2.2.3 ARCH=alpha BUILD=1 rm -rf $PKG mkdir -p $PKG/usr/local/games ( cd $TMP ### thats the base from game-package of nexuiz ### tar xjf $CWD/Nexuiz-base.tar.bz2 -C $PKG/usr/local/games ### now we build the alpha binaries ### rm -rf sources tar xjf $CWD/Nexuiz-source-$VERSION.tar.bz2 cd sources ( cd qcsrc/client ; fteqcc ) ( cd qcsrc/server ; fteqcc ) ( cd qcsrc/menu ; fteqcc ) ( cd darkplaces ; make nexuiz ) mv *.dat *.lno darkplaces/nexuiz-* $PKG/usr/local/games/Nexuiz mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG makepkg -l y -c n $TMP/nexuiz-$VERSION-$ARCH-$BUILD.tgz ) 2>&1 | tee $TMP/nexuiz.build.log