Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions apps/Cube 2 Sauerbraten/credits
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
2-bithacker for making the app request
theofficialgman who re-wrote the scripts
6 changes: 6 additions & 0 deletions apps/Cube 2 Sauerbraten/description
Original file line number Diff line number Diff line change
@@ -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
Binary file added apps/Cube 2 Sauerbraten/icon-24.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/Cube 2 Sauerbraten/icon-64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 31 additions & 0 deletions apps/Cube 2 Sauerbraten/install
Original file line number Diff line number Diff line change
@@ -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
5 changes: 5 additions & 0 deletions apps/Cube 2 Sauerbraten/uninstall
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

purge_packages || exit 1

rm -rf ~/sauerbraten ~/.local/share/applications/cube_2_sauerbraten.desktop
1 change: 1 addition & 0 deletions apps/Cube 2 Sauerbraten/website
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sauerbraten.org
1 change: 1 addition & 0 deletions etc/categories
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down