# Maintainer: Jay Dolan, jdolan at jdolan dot dyndns dot org # Description: Quake II 3.20 with dm and ctf # URL: http://www.idsoftware.com/games/quake/quake2 # Depends on: name=quake2 version=3.20 release=6 source=(ftp://ftp.idsoftware.com/idstuff/quake2/q2-3.20-x86-full-ctf.exe \ dm.cfg ctf.cfg) build(){ unzip q2-$version-x86-full-ctf.exe files=$( find . -name "*.lst" find . -name "*.md2" find . -name "*.pak" find . -name "*.pcx" find . -name "*.wav" ) for f in ${files[@]}; do install -d $PKG/usr/share/quake2/${f%/*} install -m 644 $f $PKG/usr/share/quake2/${f%/*} done install -m 644 dm.cfg $PKG/usr/share/quake2/baseq2/server.cfg install -m 644 ctf.cfg $PKG/usr/share/quake2/ctf/server.cfg }