diff --git a/tur/supertux/0000-fix_xdg_open.patch b/tur/supertux/0000-fix_xdg_open.patch new file mode 100644 index 0000000000..7c4d625e0a --- /dev/null +++ b/tur/supertux/0000-fix_xdg_open.patch @@ -0,0 +1,12 @@ +diff -ur a/src/util/file_system.cpp b/src/util/file_system.cpp +--- a/src/util/file_system.cpp 2021-12-23 00:01:58.000000000 +0100 ++++ b/src/util/file_system.cpp 2025-03-17 22:46:31.251141036 +0100 +@@ -234,7 +234,7 @@ + #if defined(__APPLE__) + std::string cmd = "open \"" + path + "\""; + #else +- std::string cmd = "xdg-open \"" + path + "\""; ++ std::string cmd = "xdg-utils-xdg-open \"" + path + "\""; + #endif + + int ret = system(cmd.c_str()); diff --git a/tur/supertux/build.sh b/tur/supertux/build.sh new file mode 100644 index 0000000000..6144d1727d --- /dev/null +++ b/tur/supertux/build.sh @@ -0,0 +1,24 @@ +TERMUX_PKG_HOMEPAGE=https://www.supertux.org +TERMUX_PKG_DESCRIPTION="SuperTux is a jump'n'run game with strong inspiration from the Super Mario Bros. games for the various Nintendo platforms." +TERMUX_PKG_LICENSE="GPL-3.0" +TERMUX_PKG_MAINTAINER="@termux-user-repository" +TERMUX_PKG_VERSION="0.6.3" +TERMUX_PKG_SRCURL="https://github.com/SuperTux/supertux/releases/download/v${TERMUX_PKG_VERSION}/SuperTux-v${TERMUX_PKG_VERSION}-Source.tar.gz" +TERMUX_PKG_SHA256=f7940e6009c40226eb34ebab8ffb0e3a894892d891a07b35d0e5762dd41c79f6 +TERMUX_PKG_BUILD_IN_SRC=true +TERMUX_PKG_BUILD_DEPENDS="boost-headers" +TERMUX_PKG_DEPENDS="boost, glm, sdl2, sdl2-image, sdl2-ttf, glew, openal-soft, libphysfs, supertux-data, freetype, libandroid-execinfo" +TERMUX_PKG_FORCE_CMAKE=true +TERMUX_ON_DEVICE_BUILD=false + +TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" +-DBoost_INCLUDE_DIR=$TERMUX_PREFIX/include +-DCMAKE_INSTALL_PREFIX=$TERMUX_PREFIX +-DIS_SUPERTUX_RELEASE=true +-DINSTALL_SUBDIR_BIN=bin +" + +termux_step_pre_configure() { + export LDFLAGS+=" -Wl,--no-as-needed,-lOpenSLES,--as-needed" + export CMAKE_PREFIX_PATH=$TERMUX_PREFIX +} diff --git a/tur/supertux/supertux-data.subpackage.sh b/tur/supertux/supertux-data.subpackage.sh new file mode 100644 index 0000000000..20abc125e7 --- /dev/null +++ b/tur/supertux/supertux-data.subpackage.sh @@ -0,0 +1,6 @@ +TERMUX_SUBPKG_DESCRIPTION="Data files for supertux" +TERMUX_SUBPKG_PLATFORM_INDEPENDENT=true +TERMUX_SUBPKG_DEPEND_ON_PARENT=no +TERMUX_SUBPKG_INCLUDE=" +share/games/supertux2 +"