# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/sauerbraten/sauerbraten.conf # Copyright (C) 2007 - 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 --- sauerbraten_install() { sroot=$root/opt/sauerbraten mkdir -p $sroot/bin cp -rf data docs packages $sroot cp -f src/sauer_* $sroot/bin cat > $sroot/bin/sauerbraten <<-EOT #!/bin/sh pushd . SAUER_DIR=$sroot cd $sroot exec bin/sauer_client \$* popd EOT chmod +x $sroot/bin/sauerbraten } makeinstopt= hook_add preconf 5 'cd src' hook_add postmake 5 'cd ..; sauerbraten_install'