RetroPie-Setup/scriptmodules/ports/openblok.sh
2021-12-06 10:27:17 +01:00

40 lines
1.3 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="openblok"
rp_module_desc="OpenBlok: A Block Dropping Game"
rp_module_licence="GPL3 https://raw.githubusercontent.com/mmatyas/openblok/master/LICENSE.md"
rp_module_repo="git https://github.com/mmatyas/openblok.git master"
rp_module_section="exp"
rp_module_flags=""
function depends_openblok() {
getDepends cmake libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev gettext
}
function sources_openblok() {
gitPullOrClone
}
function build_openblok() {
cmake -DCMAKE_BUILD_TYPE=Release -DINSTALL_PORTABLE=ON -DCMAKE_INSTALL_PREFIX="$md_inst" -DENABLE_MP3=OFF
make
md_ret_require="$md_build/src/openblok"
}
function install_openblok() {
make install/strip
}
function configure_openblok() {
moveConfigDir "$home/.local/share/openblok" "$md_conf_root/openblok"
addPort "$md_id" "openblok" "OpenBlok" "$md_inst/openblok"
}