redox/recipes/games/spacecadetpinball/recipe.toml
2024-01-18 15:59:19 -07:00

41 lines
1.1 KiB
TOML

[source]
git = "https://gitlab.redox-os.org/xTibor/SpaceCadetPinball.git"
upstream = "https://github.com/k4zmu2a/SpaceCadetPinball.git"
branch = "redox"
[build]
template = "custom"
dependencies = [
"libogg",
"liborbital",
"libvorbis",
"llvm",
"mesa",
"sdl2",
"sdl2-mixer",
"zlib",
]
script = """
COOKBOOK_CONFIGURE="cmake"
COOKBOOK_CONFIGURE_FLAGS=(
-DCMAKE_VERBOSE_MAKEFILE=On
-DCMAKE_CROSSCOMPILING=True
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_INSTALL_PREFIX="/usr"
-DSDL2_INCLUDE_DIR="${COOKBOOK_SYSROOT}/include/SDL2"
-DSDL2_LIBRARY="-lSDL2_mixer -lvorbisfile -lvorbis -logg -lSDL2 -lorbital $("${TARGET}-pkg-config" --libs osmesa)"
-DSDL2_MIXER_INCLUDE_DIR="${COOKBOOK_SYSROOT}/include/SDL2"
-DSDL2_MIXER_LIBRARY="SDL2_mixer"
"${COOKBOOK_SOURCE}"
)
cookbook_configure
mkdir -pv "${COOKBOOK_STAGE}/ui/apps"
cat > "${COOKBOOK_STAGE}"/ui/apps/spacecadetpinball <<EOF
name=Space Cadet Pinball
category=Games
binary=/usr/bin/SpaceCadetPinball
icon=/usr/share/icons/hicolor/128x128/apps/SpaceCadetPinball.png
EOF
"""