forked from zerojay/RetroPie-Extra
-
Notifications
You must be signed in to change notification settings - Fork 23
/
rigelengine.sh
58 lines (46 loc) · 1.65 KB
/
rigelengine.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/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/"
chown -R $user:$user "$romdir/ports/duke2"
fi
}
function configure_rigelengine() {
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
}