# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/nexuiz/nexuiz.conf # Copyright (C) 2004 - 2022 The T2 SDE Project # # This Copyright note is generated by scripts/Create-CopyPatch, # more information can be found in the files COPYING and README. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2. # --- T2-COPYRIGHT-NOTE-END --- nex_install() { cp darkplaces-dedicated $root$bindir/nexuiz-dedicated for x in glx sdl; do cp darkplaces-$x $root$bindir/nexuiz-$x-bin cat > $root$bindir/nexuiz-$x <<-EOT #!/bin/sh exec \$0-bin -basedir $datadir/nexuiz $* EOT chmod +x $root$bindir/nexuiz-$x done cd ../.. mkdir -p $root$datadir/nexuiz/data/ cp -rv data/*.pk* $root$datadir/nexuiz/data/ } var_append makeopt ' ' release makeinstopt= var_append zipopt ' ' -d$pkg-$ver hook_add prepatch 1 'cd Nexuiz; cd sources/; unzip gamesource*.zip; unzip enginesource*.zip; cd darkplaces' hook_add postmake 5 'nex_install'