Advertisement
Guest User

Untitled

a guest
Apr 13th, 2017
676
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.69 KB | None | 0 0
  1. #!/usr/bin/env bash
  2.  
  3. # This file is part of The RetroPie Project
  4. #
  5. # The RetroPie Project is the legal property of its developers, whose names are
  6. # too numerous to list here. Please refer to the COPYRIGHT.md file distributed with this source.
  7. #
  8. # See the LICENSE.md file at the top-level directory of this distribution and
  9. # at https://raw.githubusercontent.com/RetroPie/RetroPie-Setup/master/LICENSE.md
  10. #
  11.  
  12. rp_module_id="srb2"
  13. rp_module_desc="Sonic Robo Blast 2 - 3D Sonic the Hedgehog fan-game built using a modified version of the Doom Legacy source port of Doom"
  14. rp_module_licence="GPL2 https://raw.githubusercontent.com/STJr/SRB2/master/LICENSE"
  15. rp_module_section="exp"
  16.  
  17. function depends_srb2() {
  18. getDepends cmake libsdl2-dev libsdl2-mixer-dev p7zip
  19. }
  20.  
  21. function sources_srb2() {
  22. gitPullOrClone "$md_build" https://github.com/STJr/SRB2.git
  23. # Download game assets
  24. wget -q http://rosenthalcastle.org/srb2/SRB2-v2117-Installer.exe -O "$md_build/SRB2.exe"
  25. 7zr e "$md_build/SRB2.exe" -o"$md_build/assets" *.dta *.srb
  26. rm "$md_build/SRB2.exe"
  27. }
  28.  
  29. function build_srb2() {
  30. mkdir build
  31. cd build
  32. cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$md_inst"
  33. make
  34. md_ret_require="$md_build"
  35. }
  36.  
  37. function install_srb2() {
  38. md_ret_files=(
  39. 'build/bin/srb2'
  40. 'build/bin/srb2-2.1.17'
  41. 'assets/music.dta'
  42. 'assets/patch.dta'
  43. 'assets/player.dta'
  44. 'assets/rings.dta'
  45. 'assets/zones.dta'
  46. 'assets/srb2.srb'
  47. )
  48. }
  49.  
  50. function configure_srb2() {
  51. addPort "$md_id" "srb2" "Sonic Robo Blast 2" "pushd $md_inst; ./srb2; popd"
  52.  
  53. moveConfigDir "$home/.srb2" "$md_conf_root/$md_id"
  54. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement