Install X16 build environment

Bash jimmyd 6 Views Size: 1.35 KB Posted on: Oct 19, 25 @ 7:07 PM
  1. 1#Put everything in a build directory
  2. 2mkdir build
  3. 3cd build
  4. 4
  5. 5#Install needed software
  6. 6sudo apt install git subversion build-essential default-jre curl
  7. 7
  8. 8#Download cc65, compile and install
  9. 9git clone https://github.com/cc65/cc65
  10. 10cd cc65
  11. 11make
  12. 12sudo make avail
  13. 13
  14. 14#Download acme, compile and install
  15. 15cd ..
  16. 16svn checkout https://svn.code.sf.net/p/acme-crossass/code-0/trunk acme
  17. 17cd acme/src
  18. 18make
  19. 19sudo make install
  20. 20
  21. 21#Download tass64, compile and install
  22. 22cd ../..
  23. 23svn checkout https://svn.code.sf.net/p/tass64/code/trunk tass64
  24. 24cd tass64
  25. 25make
  26. 26sudo make install
  27. 27
  28. 28#Download latest release of X16 emulator and install
  29. 29cd ..
  30. 30curl -s https://api.github.com/repos/x16community/x16-emulator/releases/latest \
  31. 31| grep "browser_download_url.*x86_64.*zip" \
  32. 32| cut -d : -f 2,3 \
  33. 33| tr -d \" \
  34. 34| wget -qi -
  35. 35unzip x16emu_linux-x86_64-r*.zip -d x16emu
  36. 36sudo ln -s "$(echo ~)/build/x16emu/x16emu" /usr/local/bin/x16emu
  37. 37
  38. 38#Download latest release of prog8 and install launch-script
  39. 39curl -s https://api.github.com/repos/irmen/prog8/releases/latest \
  40. 40| grep "browser_download_url.*.jar" \
  41. 41| cut -d : -f 2,3 \
  42. 42| tr -d \" \
  43. 43| wget -qi -
  44. 44echo -ne '#!/bin/bash\njava -jar ' > script.sh
  45. 45echo -n ~ >> script.sh
  46. 46echo -n "/build/" >> script.sh
  47. 47ls -1 prog* | tr -d '\n' >> script.sh
  48. 48echo ' $@' >> script.sh
  49. 49chmod +x script.sh
  50. 50sudo mv script.sh /usr/local/bin/prog8

Raw Paste

Comments 0
Login to post a comment.
  • No comments yet. Be the first.
Login to post a comment. Login or Register
We use cookies. To comply with GDPR in the EU and the UK we have to show you these.

We use cookies and similar technologies to keep this website functional (including spam protection via Google reCAPTCHA), and — with your consent — to measure usage and show ads. See Privacy.