#!/bin/bash if [[ $EUID -ne 0 ]]; then echo "This script must be run as root" exit 1 fi cd /tmp hg clone https://hg.libsdl.org/SDL SDL; cd SDL; mkdir build; cd build; ../configure make; make install; sudo ln -s /usr/local/lib/libSDL2-2.0.so.0 /usr/lib64/libSDL2-2.0.so.0