Skip to content

Instantly share code, notes, and snippets.

@xerpi
Last active November 14, 2016 12:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xerpi/a5724992184e6fa00d23a7b1e507ebb5 to your computer and use it in GitHub Desktop.
Save xerpi/a5724992184e6fa00d23a7b1e507ebb5 to your computer and use it in GitHub Desktop.
#!/bin/bash
INSTALL_DIR=/opt/vitasdk
sudo rm -rf $INSTALL_DIR
sudo mkdir -p $INSTALL_DIR
sudo chown $USER $INSTALL_DIR
sudo apt-get install -y git cmake geany
toolchain=vitasdk-2016-11-12_23-08-48-linux-x86_64-nightly-267daefdc79e3f36b89632e7afad9dfe0f177ad3.tar.bz2
url="https://dl.bintray.com/vitasdk/vitasdk/$toolchain"
wget -nc -O "$toolchain" $url
tar --keep-newer-files -xvjf "$toolchain"
sudo cp -rf vitasdk/* $INSTALL_DIR
rm -rf vitasdk
echo "# VITASDK" >> ~/.bashrc
echo "export VITASDK=$INSTALL_DIR" >> ~/.bashrc
echo "export PATH=$INSTALL_DIR/bin:\$PATH" >> ~/.bashrc
export VITASDK="$INSTALL_DIR"
export PATH="$INSTALL_DIR/bin:$PATH"
git clone https://github.com/vitadev/vdpm
cd vdpm
cp config.sample config
./install-all.sh
cd ..
rm -rf vdpm
git clone --recursive https://github.com/yifanlu/taiHEN.git
cd taiHEN && mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX="$INSTALL_DIR/arm-vita-eabi"
make -j8 && make install
cd ../..
git clone https://github.com/henkaku/henkaku.git
cd henkaku
./build.sh sample.config.in
cd ..
# Install Geany themes
git clone https://github.com/codebrainz/geany-themes.git
cd geany-themes
./install.sh
cd ..
rm -rf geany-themes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment