Files
termux-packages/packages/jython/build.sh
termux-pacman-bot d069a74ddf tree-wide: migrate Java packages to JDK 21
- Fixes https://github.com/termux/termux-packages/issues/25027

- JDK 21 has been released for a year, so theoretically, all packages should be ready now, but it will be necessary to test each package's basic functionality with `openjdk-21` installed, to make sure that they are compatible.

- Now that https://github.com/termux/termux-packages/pull/25214 has been merged, it should be easier for termux-apt users whose `java` command is set to `openjdk-17`, to get it automatically updated to `openjdk-21` without necessarily having to uninstall `openjdk-17`.
2025-07-18 11:06:32 +00:00

32 lines
1017 B
Bash

TERMUX_PKG_HOMEPAGE=https://www.jython.org/
TERMUX_PKG_DESCRIPTION="Python for the Java Platform"
TERMUX_PKG_LICENSE="custom"
TERMUX_PKG_LICENSE_FILE="LICENSE.txt"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="2.7.4"
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://github.com/jython/jython/archive/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=36a4bab0cf02eb6c5169d7e818531f321e276f17111833540db7d19150d3e5b2
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_UPDATE_TAG_TYPE="newest-tag"
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_DEPENDS="openjdk-21"
TERMUX_PKG_BUILD_DEPENDS="ant"
TERMUX_PKG_PLATFORM_INDEPENDENT=true
TERMUX_PKG_RM_AFTER_INSTALL="
opt/jython/bin/jython_regrtest.bat
opt/jython/bin/jython.exe
opt/jython/bin/jython.py
"
termux_step_make() {
sh $TERMUX_PREFIX/bin/ant
}
termux_step_make_install() {
rm -rf $TERMUX_PREFIX/opt/jython
mkdir -p $TERMUX_PREFIX/opt/jython
cp -a $TERMUX_PKG_SRCDIR/dist/* $TERMUX_PREFIX/opt/jython/
ln -sfr $TERMUX_PREFIX/opt/jython/bin/jython $TERMUX_PREFIX/bin/jython
}