Skip to content

Commit f99c84d

Browse files
fix(tur/python-pygame): implement on-device build
1 parent 4e214a8 commit f99c84d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tur/python-pygame/build.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ TERMUX_PKG_DESCRIPTION="pygame is a python game library"
33
TERMUX_PKG_LICENSE="LGPL-3.0"
44
TERMUX_PKG_MAINTAINER="@termux-user-repository"
55
TERMUX_PKG_VERSION="2.6.1"
6-
TERMUX_PKG_REVISION=3
6+
TERMUX_PKG_REVISION=4
77
TERMUX_PKG_SRCURL="https://github.com/pygame/pygame/archive/refs/tags/${TERMUX_PKG_VERSION}.tar.gz"
88
TERMUX_PKG_SHA256=6a5dd68af93a11ba6eb35c971fa220bf253cebf63b1f54cbe697b30fae9c7c72
99
TERMUX_PKG_DEPENDS="x11-repo, freetype, portmidi, python, sdl2, sdl2-image, sdl2-mixer, sdl2-ttf"
1010
TERMUX_PKG_BUILD_DEPENDS="xorgproto"
11-
TERMUX_PKG_PYTHON_CROSS_BUILD_DEPS="'Cython>=3.0', wheel"
11+
TERMUX_PKG_PYTHON_COMMON_BUILD_DEPS="'Cython>=3.0'"
1212
TERMUX_PKG_AUTO_UPDATE=true
1313
TERMUX_PKG_BUILD_IN_SRC=true
1414

@@ -20,3 +20,7 @@ termux_step_pre_configure() {
2020
export PATH="$PATH:$TERMUX_PREFIX/bin"
2121
LDFLAGS+=" -lm"
2222
}
23+
24+
termux_step_make_install() {
25+
pip install --no-deps --no-build-isolation . --prefix "$TERMUX_PREFIX"
26+
}

0 commit comments

Comments
 (0)