compile-scummvm/compileScummvm.sh

17 lines
889 B
Bash
Raw Normal View History

2022-07-13 22:27:53 +02:00
#!/bin/bash
# Fanta <fanta@56k.es>
d="/tmp/scummvm"
if [ "$(whoami)" != "root" ]; then
echo "[+] Checking root user"
echo -e "\e[31m\e[1m[NOT OK]\e[0m Run it with root please" && exit
fi
# Ubuntu 20.04.4 LTS
cat /etc/issue | grep "Ubuntu 20.04.4 LTS" 1>/dev/null ; if [ "$?" -ne 1 ]; then
2022-07-13 23:06:07 +02:00
apt update -y ; apt install -y git make gcc g++ libsdl2-dev nasm libsdl2-net-dev liba52-dev libjpeg-turbo8-dev libmpeg2-4-dev libogg-dev libvorbis-dev libflac-dev libmad0-dev libpng-dev libtheora-dev libfaad-dev libfluidsynth-dev libfreetype6-dev zlib1g-dev libfribidi-dev libgif-dev libglew-dev libcurl4-openssl-dev libgtk-3-dev libspeechd-dev libsndio-dev libunity-dev
2022-07-13 22:27:53 +02:00
git clone -b master --depth 1 "https://github.com/scummvm/scummvm.git" $d ; cd $d
./configure --enable-all-engines --disable-discord --enable-plugins --enable-profiling
2022-07-13 23:06:07 +02:00
make clean ; make -j$(nproc); make install
2022-07-13 22:27:53 +02:00
fi