diff --git a/apps/Descent 2/description b/apps/Descent 2/description new file mode 100644 index 0000000..9922d39 --- /dev/null +++ b/apps/Descent 2/description @@ -0,0 +1,5 @@ +D2X-Rebirth - source port of Descent 2: Counterstrike from 1996 +This package installs the shareware version, if you own the full game you can copy the game data to ~/.d2x-rebirth directory (replacing existing files). +To run: Menu -> Games -> Descent 2 +To run in a terminal: ~/.d1x-rebirth/d1x-rebirth-rpi -hogdir ~/.d1x-rebirth +To exit: select "Quit" in the game's main menu. diff --git a/apps/Descent 2/icon-24.png b/apps/Descent 2/icon-24.png new file mode 100644 index 0000000..f139267 Binary files /dev/null and b/apps/Descent 2/icon-24.png differ diff --git a/apps/Descent 2/icon-64.png b/apps/Descent 2/icon-64.png new file mode 100644 index 0000000..7efbeef Binary files /dev/null and b/apps/Descent 2/icon-64.png differ diff --git a/apps/Descent 2/install-32 b/apps/Descent 2/install-32 new file mode 100755 index 0000000..fd31800 --- /dev/null +++ b/apps/Descent 2/install-32 @@ -0,0 +1,47 @@ +#!/bin/bash + +DIRECTORY="$(dirname "$(dirname "$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )")")" + +function error { + echo -e "\\e[91m$1\\e[39m" + exit 1 +} + +echo ' __________' +echo '__________/ DXX-Rebirth /' + +"${DIRECTORY}/pkg-install" "libsdl-mixer1.2 libsdl-image1.2 libphysfs1 libglu1-mesa" "$(dirname "$0")" || exit 1 + +mkdir ~/.d2x-rebirth +cd ~/.d2x-rebirth + +# rename existing files to lower case +for i in $( ls | grep [A-Z] ); do mv -f $i `echo $i | tr 'A-Z' 'a-z'`; done + +if [ ! -f descent2.hog -a ! -f d2demo.hog ]; then + echo No game content detected, downloading shareware version + wget -q --show-progress https://www.dxx-rebirth.com/download/dxx/content/descent2-pc-demo.zip || error "failed to download game content!" + unzip descent2-pc-demo.zip + rm descent2-pc-demo.zip +fi + +wget -N -q --show-progress https://www.dxx-rebirth.com/download/dxx/res/d2xr-sc55-music.dxa || error "failed to download ogg soundtrack!" +wget -N -q --show-progress https://github.com/dimag0g/dxx-rebirth/releases/download/v0.61-switch/d2x-rebirth-rpi || error "failed to download the executable!" +chmod a+x d2x-rebirth-rpi + +echo "ResolutionX=640 +ResolutionY=480 +WindowMode=1" > descent.cfg + +echo "[Desktop Entry] +Name=Descent 2 +Comment=DXX-Rebirth source port of Descent 2: Counterstrike from 1996... +Exec=$HOME/.d2x-rebirth/d2x-rebirth-rpi -hogdir $HOME/.d2x-rebirth +Icon=$(dirname "$0")/icon-64.png +Terminal=false +Type=Application +Categories=Game;ActionGame; +StartupNotify=false +" > ~/.local/share/applications/d2x-rebirth.desktop || error "Failed to create menu entry!" + +exit 0 diff --git a/apps/Descent 2/uninstall b/apps/Descent 2/uninstall new file mode 100755 index 0000000..371171f --- /dev/null +++ b/apps/Descent 2/uninstall @@ -0,0 +1,7 @@ +#!/bin/bash + +DIRECTORY="$(dirname "$(dirname "$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )")")" + +rm -fr ~/.d2x-rebirth +rm ~/.local/share/applications/d2x-rebirth.desktop +"${DIRECTORY}/purge-installed" "$(dirname "$0")" || exit 1 diff --git a/apps/Descent 2/website b/apps/Descent 2/website new file mode 100644 index 0000000..69f38f8 --- /dev/null +++ b/apps/Descent 2/website @@ -0,0 +1 @@ +https://www.dxx-rebirth.com/ \ No newline at end of file