Skip to content
Open
Show file tree
Hide file tree
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
12 changes: 12 additions & 0 deletions tur/supertux/0000-fix_xdg_open.patch
Original file line number Diff line number Diff line change
@@ -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());
24 changes: 24 additions & 0 deletions tur/supertux/build.sh
Original file line number Diff line number Diff line change
@@ -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
}
6 changes: 6 additions & 0 deletions tur/supertux/supertux-data.subpackage.sh
Original file line number Diff line number Diff line change
@@ -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
"