3. Apply a small patch to account for libmusl being used rather than glibc (Thanks to SleepyFugu for the patch):
wget https://nzarx.github.io/srb2/i_system.c && cp -f i_system.c /src/sdl/i_system.c
4. Build SRB2:
32-bit:
make -C src/ LINUX=1 LIBGME_LDFLAGS=-lgme LIBGME_CFLAGS=
64-bit:
make -C src/ LINUX64=1 LIBGME_LDFLAGS=-lgme LIBGME_CFLAGS=
5. Access the directory the newly-compiled binary is in:
cd bin
6. Rename the binary and move it to the default location for executable files:
sudo mv lsdl2srb2 /usr/local/bin/srb2
7. Create a local SRB2 directory where some SRB2 data will be stored:
cd && mkdir .srb2 && cd .srb2
8. Download SRB2 libraries:
wget https://github.com/STJr/SRB2/releases/download/SRB2_release_2.2.9/SRB2-v229-Full.zip
9. Extract them and delete the zip file:
unzip "SRB2-v229-Full.zip" '*.pk3' '*.dta' '*.dat' 'models/**/*' && rm -r SRB2-v229-Full.zip
10. Create a directory for SRB2 libraries:
sudo mkdir -p /usr/local/share/games/SRB2
11. Move all the libraries over to a global directory:
find . -maxdepth 1 \( -name '*.pk3' -o -name '*.dta' \) -exec sudo mv "{}" /usr/local/share/games/SRB2 \;
12. Move the SRB2 icon to a specific directory so that it can be seen in the shortcut file:
cd && mkdir .icons ; mv SRB2/srb2.png $HOME/.icons/srb2.png
13. The source code folder is no longer needed, the command below deletes it:
rm -r SRB2
14. Download the shortcut file:
wget https://nzarx.github.io/srb2/srb2.desktop
15. Move said shortcut file to the local shortcut directory:
mv srb2.desktop .local/share/applications/srb2.desktop