2020-04-25 10:50:35 +00:00
|
|
|
case `echo $1 | cut -d '-' -f 1` in
|
|
|
|
ubuntu)
|
|
|
|
sudo apt-get -qq update
|
2020-04-27 20:18:36 +00:00
|
|
|
sudo apt-get install -yq bison libpng-dev pkg-config libsdl2-dev portaudio19-dev
|
2020-04-25 10:50:35 +00:00
|
|
|
(
|
|
|
|
cd `mktemp -d`
|
|
|
|
curl -L https://github.com/rednex/rgbds/archive/v0.4.0.zip > rgbds.zip
|
|
|
|
unzip rgbds.zip
|
|
|
|
cd rgbds-*
|
|
|
|
make -sj
|
|
|
|
sudo make install
|
|
|
|
cd ..
|
|
|
|
rm -rf *
|
|
|
|
)
|
|
|
|
;;
|
|
|
|
macos)
|
2020-04-27 20:18:36 +00:00
|
|
|
brew install rgbds sdl2 portaudio
|
2020-04-25 10:50:35 +00:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo "Unsupported OS"
|
|
|
|
exit 1
|
|
|
|
;;
|
|
|
|
esac
|