From 88d98f1e8d0913981fac90a5fe27389f2eb50570 Mon Sep 17 00:00:00 2001 From: Eric Ceisel <48326368+Exarkuniv@users.noreply.github.com> Date: Fri, 28 Jul 2023 08:22:39 -0500 Subject: [PATCH 1/5] Create rigelengine.sh --- scriptmodules/ports/rigelengine.sh | 59 ++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 scriptmodules/ports/rigelengine.sh diff --git a/scriptmodules/ports/rigelengine.sh b/scriptmodules/ports/rigelengine.sh new file mode 100644 index 0000000000..ee5314d759 --- /dev/null +++ b/scriptmodules/ports/rigelengine.sh @@ -0,0 +1,59 @@ +#!/usr/bin/env bash + +# This file is part of RetroPie-Extra, a supplement to RetroPie. +# For more information, please visit: +# +# https://github.com/RetroPie/RetroPie-Setup +# https://github.com/Exarkuniv/RetroPie-Extra +# +# See the LICENSE file distributed with this source and at +# https://raw.githubusercontent.com/Exarkuniv/RetroPie-Extra/master/LICENSE +# + +rp_module_id="rigelengine" +rp_module_desc="RigelEngine - Duke Nukem 2 source port" +rp_module_help="Copy your game to roms/ports/duke2 folder" +rp_module_licence="GPL2 https://github.com/lethal-guitar/RigelEngine/blob/master/LICENSE.md" +rp_module_repo="git https://github.com/lethal-guitar/RigelEngine.git v0.9.1" +rp_module_section="exp" +rp_module_flags="noinstclean" + + +function depends_rigelengine() { + getDepends cmake libsdl2-dev libsdl2-mixer-dev +} + + +function sources_rigelengine() { + gitPullOrClone +} + +function build_rigelengine() { + mkdir $md_build/build + cd $md_build/build + cmake .. -DUSE_GL_ES=ON -DCMAKE_BUILD_TYPE=Release -DWARNINGS_AS_ERRORS=OFF + + make + + md_ret_require="$md_build/build/src/RigelEngine" +} + +function install_rigelengine() { + md_ret_files=( + build/src/RigelEngine + ) +} + +function game_data_rigelengine() { + if [[ ! -f "$romdir/ports/duke2/NUKEM2.EXE" ]]; then + downloadAndExtract "https://github.com/Exarkuniv/game-data/raw/main/duke2.zip" "$romdir/ports/duke2/" + #mv "$romdir/ports/duke2/Duke2"* "$romdir/ports/duke2/" + chown -R $user:$user "$romdir/ports/duke2" + fi +} + +function configure_rigelengine() { + addPort "$md_id" "rigelengine" "RigelEngine - Duke Nukem 2 source port" "$md_inst/RigelEngine /home/pi/RetroPie/roms/ports/duke2" + mkRomDir "ports/duke2" + [[ "$md_mode" == "install" ]] && game_data_rigelengine +} \ No newline at end of file From 4ca0e15fce915eaf1dafea8ddad30eaa81a69f81 Mon Sep 17 00:00:00 2001 From: Exarkuniv <48326368+Exarkuniv@users.noreply.github.com> Date: Fri, 28 Jul 2023 09:12:54 -0500 Subject: [PATCH 2/5] Update rigelengine.sh had leftover from Extras --- scriptmodules/ports/rigelengine.sh | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/scriptmodules/ports/rigelengine.sh b/scriptmodules/ports/rigelengine.sh index ee5314d759..4b9f274bed 100644 --- a/scriptmodules/ports/rigelengine.sh +++ b/scriptmodules/ports/rigelengine.sh @@ -1,13 +1,12 @@ #!/usr/bin/env bash -# This file is part of RetroPie-Extra, a supplement to RetroPie. -# For more information, please visit: +# This file is part of The RetroPie Project # -# https://github.com/RetroPie/RetroPie-Setup -# https://github.com/Exarkuniv/RetroPie-Extra +# The RetroPie Project is the legal property of its developers, whose names are +# too numerous to list here. Please refer to the COPYRIGHT.md file distributed with this source. # -# See the LICENSE file distributed with this source and at -# https://raw.githubusercontent.com/Exarkuniv/RetroPie-Extra/master/LICENSE +# See the LICENSE.md file at the top-level directory of this distribution and +# at https://raw.githubusercontent.com/RetroPie/RetroPie-Setup/master/LICENSE.md # rp_module_id="rigelengine" @@ -18,12 +17,10 @@ rp_module_repo="git https://github.com/lethal-guitar/RigelEngine.git v0.9.1" rp_module_section="exp" rp_module_flags="noinstclean" - function depends_rigelengine() { getDepends cmake libsdl2-dev libsdl2-mixer-dev } - function sources_rigelengine() { gitPullOrClone } @@ -56,4 +53,4 @@ function configure_rigelengine() { addPort "$md_id" "rigelengine" "RigelEngine - Duke Nukem 2 source port" "$md_inst/RigelEngine /home/pi/RetroPie/roms/ports/duke2" mkRomDir "ports/duke2" [[ "$md_mode" == "install" ]] && game_data_rigelengine -} \ No newline at end of file +} From 65cefa49d36c99d7f64185dd65d5fa99d4ea6f71 Mon Sep 17 00:00:00 2001 From: Exarkuniv <48326368+Exarkuniv@users.noreply.github.com> Date: Tue, 8 Aug 2023 15:21:47 -0500 Subject: [PATCH 3/5] did fixed that are requested removed line and added quotes --- scriptmodules/ports/rigelengine.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scriptmodules/ports/rigelengine.sh b/scriptmodules/ports/rigelengine.sh index 4b9f274bed..cec1c5259c 100644 --- a/scriptmodules/ports/rigelengine.sh +++ b/scriptmodules/ports/rigelengine.sh @@ -26,8 +26,8 @@ function sources_rigelengine() { } function build_rigelengine() { - mkdir $md_build/build - cd $md_build/build + mkdir "$md_build/build" + cd "$md_build/build" cmake .. -DUSE_GL_ES=ON -DCMAKE_BUILD_TYPE=Release -DWARNINGS_AS_ERRORS=OFF make @@ -44,7 +44,6 @@ function install_rigelengine() { function game_data_rigelengine() { if [[ ! -f "$romdir/ports/duke2/NUKEM2.EXE" ]]; then downloadAndExtract "https://github.com/Exarkuniv/game-data/raw/main/duke2.zip" "$romdir/ports/duke2/" - #mv "$romdir/ports/duke2/Duke2"* "$romdir/ports/duke2/" chown -R $user:$user "$romdir/ports/duke2" fi } From 2b01050d4a0576b43a4a67fcfeb2449edfc2350e Mon Sep 17 00:00:00 2001 From: Exarkuniv <48326368+Exarkuniv@users.noreply.github.com> Date: Wed, 9 Aug 2023 15:18:54 -0500 Subject: [PATCH 4/5] Update rigelengine.sh fix missing indent --- scriptmodules/ports/rigelengine.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scriptmodules/ports/rigelengine.sh b/scriptmodules/ports/rigelengine.sh index cec1c5259c..24a7007004 100644 --- a/scriptmodules/ports/rigelengine.sh +++ b/scriptmodules/ports/rigelengine.sh @@ -44,7 +44,7 @@ function install_rigelengine() { function game_data_rigelengine() { if [[ ! -f "$romdir/ports/duke2/NUKEM2.EXE" ]]; then downloadAndExtract "https://github.com/Exarkuniv/game-data/raw/main/duke2.zip" "$romdir/ports/duke2/" - chown -R $user:$user "$romdir/ports/duke2" + chown -R $user:$user "$romdir/ports/duke2" fi } From ed52ac4d502394213278fb30645dc146da572441 Mon Sep 17 00:00:00 2001 From: Exarkuniv <48326368+Exarkuniv@users.noreply.github.com> Date: Mon, 4 Dec 2023 12:39:12 -0600 Subject: [PATCH 5/5] Update rigelengine.sh using $romdir to make it more universal --- scriptmodules/ports/rigelengine.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scriptmodules/ports/rigelengine.sh b/scriptmodules/ports/rigelengine.sh index 24a7007004..74682a0b45 100644 --- a/scriptmodules/ports/rigelengine.sh +++ b/scriptmodules/ports/rigelengine.sh @@ -49,7 +49,7 @@ function game_data_rigelengine() { } function configure_rigelengine() { - addPort "$md_id" "rigelengine" "RigelEngine - Duke Nukem 2 source port" "$md_inst/RigelEngine /home/pi/RetroPie/roms/ports/duke2" + addPort "$md_id" "rigelengine" "RigelEngine - Duke Nukem 2 source port" "$md_inst/RigelEngine $romdir/ports/duke2" mkRomDir "ports/duke2" [[ "$md_mode" == "install" ]] && game_data_rigelengine }