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