nixpkgs/pkgs/games/quake3/wrapper/builder.sh
Eelco Dolstra 3ba77c1b40 * Get the Unreal Tournament 2004 demo to work with the new scheme for
handling OpenGL.

svn path=/nixpkgs/trunk/; revision=4616
2006-01-30 11:44:39 +00:00

28 lines
375 B
Bash

source $stdenv/setup
ensureDir $out/baseq3
for i in $paks; do
if test -d "$paks/baseq3"; then
ln -s $paks/baseq3/* $out/baseq3/
fi
done
ensureDir $out/bin
cat >$out/bin/quake3 <<EOF
#! $SHELL -e
mesa=$mesa
$(cat $mesaSwitch)
exec $game/ioquake3.i386 \
+set fs_basepath $out \
+set r_allowSoftwareGL 1 \
"\$@"
EOF
chmod +x $out/bin/quake3