forked from thestr4ng3r/chiaki
-
Notifications
You must be signed in to change notification settings - Fork 11
/
install_sdl.sh
executable file
·33 lines (31 loc) · 937 Bytes
/
install_sdl.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh
echo ""
echo "This script will install SDL 2.0.22 from the Official github release onto your system."
echo "Read this script for more details."
echo ""
read -r -p "Go ahead? [Y/n] " input
case $input in
[yY][eE][sS]|[yY])
echo "Installing from https://github.com/libsdl-org/SDL/archive/refs/tags/release-2.0.22.zip"
echo ""
cd third-party/
wget https://github.com/libsdl-org/SDL/archive/refs/tags/release-2.0.22.zip
unzip release-2.0.22.zip
cd SDL-release-2.0.22
sudo apt install libgbm-dev
./configure --enable-video-kmsdrm --enable-video-opengles
make -j3
sudo make install
echo ""
echo "SDL 2.0.22 install finished"
echo ""
;;
[nN][oO]|[nN])
echo "Exiting script"
exit 1
;;
*)
echo "Invalid input"
exit 1
;;
esac