install_angband-2.9.3.ksh 728 B

123456789101112131415161718192021222324
  1. #!/bin/ksh
  2. doas pkg_add gmake
  3. set -x
  4. application=angband
  5. version=2.9.3
  6. game_dir="$HOME/games/roguelikes/${application}/${version}/"
  7. if [ ! -d $game_dir ]; then
  8. mkdir -p $game_dir
  9. cd $game_dir
  10. curl -OL "https://github.com/angband/angband/archive/refs/tags/v${version}.tar.gz"
  11. tar -xzvf v${version}.tar.gz
  12. cd ${application}-${version}/
  13. export CFLAGS=-DL64
  14. #./configure --with-no-install
  15. #./configure --prefix "$HOME"/.frogcomposband --with-ncurses-prefix=/usr --without-x --with-no-install CFLAGS="-DSGI -DULTRIX" LIBS=-lncurses
  16. ./configure --with-ncurses-prefix=/usr --without-x --with-no-install #CFLAGS="-DSGI -DULTRIX" LIBS=-lncurses
  17. sed -ie 's/timeb.h/time.h/g' src/h-system.h
  18. gmake clean
  19. gmake
  20. fi