From 9dc31d2d057d8dde614315bbb18ab601e5f31883 Mon Sep 17 00:00:00 2001 From: Botspot Date: Wed, 10 Mar 2021 10:12:25 -0600 Subject: [PATCH] Add Descent 1 app --- apps/Descent 1/description | 5 ++++ apps/Descent 1/icon-24.png | Bin 0 -> 1620 bytes apps/Descent 1/icon-64.png | Bin 0 -> 7174 bytes apps/Descent 1/install-32 | 48 +++++++++++++++++++++++++++++++++++++ apps/Descent 1/uninstall | 7 ++++++ apps/Descent 1/website | 1 + 6 files changed, 61 insertions(+) create mode 100644 apps/Descent 1/description create mode 100644 apps/Descent 1/icon-24.png create mode 100644 apps/Descent 1/icon-64.png create mode 100755 apps/Descent 1/install-32 create mode 100755 apps/Descent 1/uninstall create mode 100644 apps/Descent 1/website diff --git a/apps/Descent 1/description b/apps/Descent 1/description new file mode 100644 index 0000000..f7da065 --- /dev/null +++ b/apps/Descent 1/description @@ -0,0 +1,5 @@ +D1X-Rebirth - source port of Descent: First Strike from 1995 +This package installs the shareware version, if you own the full game you can copy the game data to ~/.d1x-rebirth directory (replacing existing files). +To run: Menu -> Games -> Descent 1 +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 1/icon-24.png b/apps/Descent 1/icon-24.png new file mode 100644 index 0000000000000000000000000000000000000000..e012d63d1c27c20a9eae697aa75116a13be8ddb7 GIT binary patch literal 1620 zcmV-a2CMmrP)004R>004l5008;`004mK004C`008P>0026e000+ooVrmw00006 zVoOIv0RI600RN!9r;`8x00(qQO+^Rg0SXK)8++A*A^-pdSV=@dR7l5#mCJ8kR~5#8 z`*B|P{q&8U#&PT>DO5BNr5zy{RH=jrBdT`LL75-~0ttyZ14jG_Oqn2+c?Cj+2|`pc zpf-)`G}v+D+KC_6zOQr7>z=bWgIkblnq-akWPjiKme#jE@yj3FIzP*cmyNZGXVq+m z-0LG!i>nQ)D$rH1DKGa==kD zGi+Qi9ESMHVfFGQw(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wWtrLl9$C7$`0gNVQS4|`HMXT;iBGM@I z9AMJzvVETjF|#m^)Kh4p;tg1hEDUAbpo^fTU5A zwBdg1!*`ZxW0;ao_6|^GNQF>M0wZb~A9yij2~Liw2#L;<;;m*tWMmtxH$rLfhW*CY^9><*s(N0N-vY zwym(86zAy(3@l=Va@P|bm~Ko~c1IIbP4@Hg`%m(b6NmW__KyOctmJQB+QZIl8YC2; zLpwic(rwSYm9PaQCxMU)+8D&f^qpW+${W*7GNQt^NzZ&pV2Ypwwze#;0gd_|jX;Wu ztD{~wGsY}ORr}kl(>)58uGsu?V`Re`^Tju=tj&G@)r(&UG4_A^HULorHhO5g{O6Gr?g-h172fFuR?D7Bk^}hgKS86Cz;#;Bs z001R)MObuXVRU6WV{&C-bY%cCFfuVMFf%PMGgLA#IxsalF*GYMF*-0X7BqZl0000b zbVXQnWMOn=I&E)cX=Zr/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 ~/.d1x-rebirth +cd ~/.d1x-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 descent.hog ]; then + echo No game content detected, downloading shareware version + wget -q --show-progress https://www.dxx-rebirth.com/download/dxx/content/descent-pc-shareware.zip || error "failed to download game content!" + unzip descent-pc-shareware.zip + rm descent-pc-shareware.zip +fi + +wget -N -q --show-progress https://www.dxx-rebirth.com/download/dxx/res/d1xr-hires.dxa || error "failed to download hires pack!" +wget -N -q --show-progress https://www.dxx-rebirth.com/download/dxx/res/d1xr-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/d1x-rebirth-rpi || error "failed to download the executable!" +chmod a+x d1x-rebirth-rpi + +echo "ResolutionX=640 +ResolutionY=480 +WindowMode=1" > descent.cfg + +echo "[Desktop Entry] +Name=Descent 1 +Comment=DXX-Rebirth source port of Descent: First Strike from 1995... +Exec=$HOME/.d1x-rebirth/d1x-rebirth-rpi -hogdir $HOME/.d1x-rebirth +Icon=$(dirname "$0")/icon-64.png +Terminal=false +Type=Application +Categories=Game;ActionGame; +StartupNotify=false +" > ~/.local/share/applications/d1x-rebirth.desktop || error "Failed to create menu entry!" + +exit 0 diff --git a/apps/Descent 1/uninstall b/apps/Descent 1/uninstall new file mode 100755 index 0000000..1ddf62b --- /dev/null +++ b/apps/Descent 1/uninstall @@ -0,0 +1,7 @@ +#!/bin/bash + +DIRECTORY="$(dirname "$(dirname "$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )")")" + +rm -fr ~/.d1x-rebirth +rm ~/.local/share/applications/d1x-rebirth.desktop +"${DIRECTORY}/purge-installed" "$(dirname "$0")" || exit 1 diff --git a/apps/Descent 1/website b/apps/Descent 1/website new file mode 100644 index 0000000..69f38f8 --- /dev/null +++ b/apps/Descent 1/website @@ -0,0 +1 @@ +https://www.dxx-rebirth.com/ \ No newline at end of file