@Jste84 I haven't tested this yet, but it should replicate the steps outlined in:
https://github.com/fofix/fofix/blob/master/doc/source/quickstart/Linux_Setup_Guide.md
...with some educated guesses in re: the md_ret_files and # symlink config dirs functions.
Make a backup, first. It wants to install pip from an external source (https://bootstrap.pypa.io/pip/2.7/get-pip.py -- seems legit, I guess? See also: https://github.com/pypa/get-pip#readme) and then use it to install some additional packages; also it wants to remove package libjack-jackd2-0 and replace with libjack0 as a dependency required to to install portaudio19-dev.
I haven't tested because I have no interest in playing this with a keyboard, and the GH controller I thought was in the back of my closet turned out to be for PlayStation (so, not USB), so I'm going to leave my system as-is. Let us know if it works for you, though, and I'll submit a PR; in any case, we should probably remove the old script, as it doesn't do anything useful (it builds glshim that isn't needed, and then it attempts to install a package that doesn't exist and configure a port that wasn't installed.)
To use, paste this code into your ~/RetroPie-Setup/ext/RetroPie-Extra/scriptmodules/ports/fofix.sh file, replacing all of its existing contents, and then reinstall fofix through RetroPie-Setup.
#!/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="fofix" rp_module_desc="Frets on Fire X - Guitar Hero and Rock Band clone" rp_module_licence="GPL2 https://raw.githubusercontent.com/fofix/fofix/master/COPYING" rp_module_repo="git https://github.com/fofix/fofix.git" rp_module_section="exp" rp_module_flags="noinstclean !mali !x86" function depends_fofix() { getDepends python2 libglu1-mesa-dev freeglut3-dev mesa-common-dev ffmpeg pkg-config libogg-dev libportmidi-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsdl1.2-dev libsoundtouch-dev libswscale-dev libtheora-dev libvorbis-dev mesa-utils portaudio19-dev python-dev gettext xorg # install pip and packages local tmpdir="$(mktemp -d)" local url="https://bootstrap.pypa.io/pip/2.7/get-pip.py" local file="${url##*/} download "$url" "$tmpdir" python2 "$tmpdir/$file" rm -rf "$tmpdir" pip2 install - numpy pip2 install --upgrade cython pip2 install PyOpenGL PyOpenGL_accelerate } function sources_fofix() { gitPullOrClone } function build_fofix() { python setup.py build_ext --inplace --force python setup.py msgfmt pip install -r requirements.txt # ensure build completed md_ret_require="$md_build/build" } function install_fofix() { md_ret_files=( 'fofix' 'data' 'FoFiX.py' ) } function configure_fofix() { local script="$md_inst/$md_id.sh" local file="$md_inst/FoFiX.py" addPort "$md_id" "fofix" "FoFiX - Guitar Hero and Rock Band clone" "XINIT:$script" moveConfigDir "$home/.fofix" "$md_conf_root/$md_id" [[ "$md_mode" == "remove" ]] && return # chown install dir -- may not be necessary? #chown -R $user:$user "$md_inst" # symlink config dirs local dir for dir in mods shaders songs themes tutorials users; do moveConfigDir "$md_inst/data/$dir" "$md_conf_root/$md_id/$dir" done cat > "$script" << _EOF_ #!/bin/bash python "$file" _EOF_ chmod +x "$script" }...if it installs but doesn't play (or if it plays but doesn't save, or crashes), try removing the # from line #chown -R $user:$user "$md_inst", and install again. This will make the install directory user-owned instead of admin, allowing files to be written to here by the normal user when the game is running.