mirror of
https://github.com/RetroPie/RetroPie-Setup.git
synced 2025-04-02 10:51:41 -04:00
60 lines
1.7 KiB
Bash
60 lines
1.7 KiB
Bash
#!/usr/bin/env bash
|
|
|
|
# This file is part of The RetroPie Project
|
|
#
|
|
# 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.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="gpsp"
|
|
rp_module_desc="GameBoy Advance emulator"
|
|
rp_module_help="ROM Extensions: .gba .zip\n\nCopy your Game Boy Advance roms to $romdir/gba\n\nCopy the required BIOS file gba_bios.bin to $biosdir"
|
|
rp_module_licence="GPL2 https://raw.githubusercontent.com/gizmo98/gpsp/master/COPYING.DOC"
|
|
rp_module_repo="git https://github.com/gizmo98/gpsp.git master"
|
|
rp_module_section="opt"
|
|
rp_module_flags="noinstclean !all videocore"
|
|
|
|
function depends_gpsp() {
|
|
getDepends libsdl1.2-dev libraspberrypi-dev gcc-6
|
|
}
|
|
|
|
function sources_gpsp() {
|
|
gitPullOrClone
|
|
}
|
|
|
|
function build_gpsp() {
|
|
cd raspberrypi
|
|
rpSwap on 512
|
|
make clean
|
|
make CC="gcc-6"
|
|
rpSwap off
|
|
md_ret_require="$md_build/raspberrypi/gpsp"
|
|
}
|
|
|
|
function install_gpsp() {
|
|
md_ret_files=(
|
|
'COPYING.DOC'
|
|
'game_config.txt'
|
|
'readme.txt'
|
|
'raspberrypi/gpsp'
|
|
)
|
|
}
|
|
|
|
function configure_gpsp() {
|
|
mkRomDir "gba"
|
|
chown -R "$__user":"$__group" "$md_inst"
|
|
|
|
mkUserDir "$md_conf_root/gba"
|
|
|
|
# symlink the rom so so it can be installed with the other bios files
|
|
ln -sf "$biosdir/gba_bios.bin" "$md_inst/gba_bios.bin"
|
|
|
|
# move old config
|
|
moveConfigFile "gpsp.cfg" "$md_conf_root/gba/gpsp.cfg"
|
|
|
|
addEmulator 0 "$md_id" "gba" "$md_inst/gpsp %ROM%"
|
|
addSystem "gba"
|
|
}
|