diff --git a/apps/Cube 2 Sauerbraten/credits b/apps/Cube 2 Sauerbraten/credits new file mode 100644 index 0000000000..fa641c993b --- /dev/null +++ b/apps/Cube 2 Sauerbraten/credits @@ -0,0 +1,2 @@ +2-bithacker for making the app request +theofficialgman who re-wrote the scripts diff --git a/apps/Cube 2 Sauerbraten/description b/apps/Cube 2 Sauerbraten/description new file mode 100644 index 0000000000..eba23038fb --- /dev/null +++ b/apps/Cube 2 Sauerbraten/description @@ -0,0 +1,6 @@ +Cube 2: Sauerbraten is a free multiplayer & singleplayer first person shooter, the successor of the Cube FPS. +Much like the original Cube, the aim of this game is fun, old school deathmatch gameplay and also to allow map/geometry editing to be done cooperatively in-game. +The engine supporting the game is entirely original in code & design, and its code is Open Source (ZLIB license, read the docs for more on how you can use the engine). + +To run: Menu -> Games -> Cube 2 Sauerbraten +To run in terminal: ~/sauerbraten/sauerbraten_unix diff --git a/apps/Cube 2 Sauerbraten/icon-24.png b/apps/Cube 2 Sauerbraten/icon-24.png new file mode 100644 index 0000000000..dcb674f103 Binary files /dev/null and b/apps/Cube 2 Sauerbraten/icon-24.png differ diff --git a/apps/Cube 2 Sauerbraten/icon-64.png b/apps/Cube 2 Sauerbraten/icon-64.png new file mode 100644 index 0000000000..760856e1f2 Binary files /dev/null and b/apps/Cube 2 Sauerbraten/icon-64.png differ diff --git a/apps/Cube 2 Sauerbraten/install b/apps/Cube 2 Sauerbraten/install new file mode 100755 index 0000000000..daba975c75 --- /dev/null +++ b/apps/Cube 2 Sauerbraten/install @@ -0,0 +1,31 @@ +#!/bin/bash + +cd ~ +rm -rf download +rm -rf sauerbraten + +install_packages zlib1g-dev libgeoip-dev build-essential libsdl2-dev libsdl2-mixer-dev libsdl2-image-dev || exit 1 +# as strang as it is, downloading from the 'download' name directs to a faster download server +# downloading the game code and assets +wget https://sourceforge.net/projects/sauerbraten/files/sauerbraten/2020_11_29/sauerbraten_2020_12_29_linux.tar.bz2/download || error 'Download failed from sourceforge.net!' +status "Extracting Code and Game Assets" +status "This may take a while and may not look like anything is happening" +tar -xf download || error 'Extract of Cube2: Sauerbraten failed!' +rm -f download +cd sauerbraten/src || error "Could not move to directory" +# building the game and server +make -j$(nproc) || error "Build failed" +rm -rf ../bin_unix/* +make install || error "Installation failed" + +status "Creating Menu launchers... " +mkdir -p ~/.local/share/applications +echo "[Desktop Entry] +Version=1.0 +Name=Cube 2 Sauerbraten +Exec=$HOME/sauerbraten/sauerbraten_unix %u +Path=$HOME/sauerbraten +Icon=$(dirname "$0")/icon-64.png +Terminal=false +Type=Application +Categories=Game;" > ~/.local/share/applications/cube_2_sauerbraten.desktop diff --git a/apps/Cube 2 Sauerbraten/uninstall b/apps/Cube 2 Sauerbraten/uninstall new file mode 100755 index 0000000000..1e1ac9f7be --- /dev/null +++ b/apps/Cube 2 Sauerbraten/uninstall @@ -0,0 +1,5 @@ +#!/bin/bash + +purge_packages || exit 1 + +rm -rf ~/sauerbraten ~/.local/share/applications/cube_2_sauerbraten.desktop diff --git a/apps/Cube 2 Sauerbraten/website b/apps/Cube 2 Sauerbraten/website new file mode 100644 index 0000000000..6ed566bfc7 --- /dev/null +++ b/apps/Cube 2 Sauerbraten/website @@ -0,0 +1 @@ +sauerbraten.org diff --git a/etc/categories b/etc/categories index e0faba163a..7cb0a2aaba 100644 --- a/etc/categories +++ b/etc/categories @@ -38,6 +38,7 @@ CommanderPi|System Management Conky|Appearance Conky Rings|Appearance Cool Retro Term|Terminals +Cube 2 Sauerbraten|Games Cura|Engineering DDNet|Games Deluge|Internet