1111#
1212
1313rp_module_id=" rott-huntbgin"
14- rp_module_desc=" rott - Rise of the Triad - The Hunt Begins (Shareware)"
15- rp_module_licence=" GPL2 https://raw.githubusercontent.com/zerojay/RoTT /master/COPYING "
16- rp_module_help=" Please add your shareware version ROTT files to $romdir /ports/rott-huntbgin/huntbgin to play. "
17- rp_module_repo=" git https://github.com/zerojay/RoTT master"
14+ rp_module_desc=" ROTT - Rise of the Triad - The Hunt Begins (Shareware)"
15+ rp_module_licence=" GPL2 https://raw.githubusercontent.com/LTCHIPS/rottexpr /master/LICENSE.DOC "
16+ rp_module_help=
17+ rp_module_repo=" git https://github.com/LTCHIPS/rottexpr.git master"
1818rp_module_section=" exp"
1919rp_module_flags=" !mali !x86"
2020
2121function depends_rott-huntbgin() {
22- getDepends libsdl1.2 -dev libsdl-mixer1.2 -dev automake autoconf unzip xorg
22+ getDepends libsdl2 -dev libsdl2-mixer -dev fluidsynth libfluidsynth1 libfluidsynth-dev fluid-soundfont-gs fluid-soundfont-gm
2323}
2424
2525function sources_rott-huntbgin() {
2626 gitPullOrClone
2727}
2828
2929function build_rott-huntbgin() {
30- sed -i ' s/SHAREWARE ?= 0/SHAREWARE ?= 1/g' " $md_build /rott/Makefile"
31- sed -i ' s/SUPERROTT ?= 1/SUPERROTT ?= 0/g' " $md_build /rott/Makefile"
32- make clean
33- make rott-huntbgin
34- make rott-huntbgin
35- make rott-huntbgin
30+ sed -i ' s/SHAREWARE ?= 0/SHAREWARE ?= 1/g' " $md_build /src/Makefile"
31+ cd src
32+ make rott
3633 md_ret_require=(
37- " $md_build /rott-huntbgin "
34+ " $md_build /src/ rott"
3835 )
3936}
4037
4138function install_rott-huntbgin() {
4239 md_ret_files=(
43- ' rott-huntbgin '
40+ ' src/ rott'
4441 )
4542}
4643
4744function game_data_rott-huntbgin() {
48- if [[ ! -f " $romdir /ports/rott-huntbgin /HUNTBGIN.WAD" ]]; then
49- downloadAndExtract " https://github.com/Exarkuniv/game-data/raw/main/HUNTBGIN.zip" " $romdir /ports/rott-huntbgin "
50- mv " $romdir /ports/$md_id /HUNTBGIN/" * " $romdir /ports/$md_id /"
51- rmdir " $romdir /ports/$md_id /HUNTBGIN/"
52- chown -R $user :$user " $romdir /ports/$md_id "
45+ if [[ ! -f " $romdir /ports/rott/HUNTBGIN.WAD" ]]; then
46+ downloadAndExtract " https://github.com/Exarkuniv/game-data/raw/main/HUNTBGIN.zip" " $romdir /ports/rott"
47+ mv " $romdir /ports/rott /HUNTBGIN/" * " $romdir /ports/rott /"
48+ rmdir " $romdir /ports/rott /HUNTBGIN/"
49+ chown -R $user :$user " $romdir /ports/rott "
5350 fi
5451
55- chown -R $user :$user " $romdir /ports/$md_id "
52+ chown -R $user :$user " $romdir /ports/rott "
5653}
5754
5855function configure_rott-huntbgin() {
5956 local script=" $md_inst /$md_id .sh"
6057 mkRomDir " ports"
61- mkRomDir " ports/$md_id "
58+ mkRomDir " ports/rott "
6259 moveConfigDir " $home /.rott" " $md_conf_root /rott"
6360 # create buffer script for launch
6461 cat > " $script " << _EOF_
6562#!/bin/bash
66- pushd "$romdir /ports/rott-huntbgin "
67- "$md_inst /rott-huntbgin " \$ *
63+ pushd "$romdir /ports/rott"
64+ "$md_inst /rott" \$ *
6865popd
6966_EOF_
7067
7168 chmod +x " $script "
72- addPort " $md_id " " rott-huntbgin" " Rise Of The Triad - The Hunt Begins (Shareware)" " XINIT: $script "
69+ addPort " $md_id " " rott-huntbgin" " Rise Of The Triad - The Hunt Begins (Shareware)" " $script "
7370
7471 [[ " $md_mode " == " install" ]] && game_data_rott-huntbgin
7572}
0 commit comments