Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create supertuxkart.sh #3527

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions scriptmodules/ports/supertuxkart.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@

#!/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="supertuxkart"
rp_module_desc="SuperTuxKart SDL2-compatible racing game"
rp_module_licence="GPL3 https://github.com/supertuxkart/stk-editor/blob/master/LICENSE"
rp_module_section="exp"
rp_module_flags="!rpi3"

function _update_hook_supertuxkart() {
# to show as installed in retropie-setup 4.x
hasPackage supertuxkart && mkdir -p "$md_inst"
}

function install_bin_supertuxkart() {
aptInstall supertuxkart
}

function remove_supertuxkart() {
aptRemove supertuxkart supertuxkart-data
}

function configure_supertuxkart() {
addPort "$md_inst" "supertuxkart" "SuperTuxKart"
}