Files
termux-packages/packages/ant/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

24 lines
783 B
Bash

TERMUX_PKG_HOMEPAGE=https://ant.apache.org/
TERMUX_PKG_DESCRIPTION="Java based build tool like make"
TERMUX_PKG_LICENSE="Apache-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="1.10.15"
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://dlcdn.apache.org//ant/binaries/apache-ant-${TERMUX_PKG_VERSION}-bin.tar.bz2
TERMUX_PKG_SHA256=87f48d18ba11c115688c37ef97583ec6ff89ea6033f89d818a67248da4710c4b
TERMUX_PKG_DEPENDS="openjdk-21"
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_PLATFORM_INDEPENDENT=true
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_make_install() {
mv ./bin/ant .
rm -f ./bin/*
mv ./ant ./bin/
rm -rf manual
rm -rf $TERMUX_PREFIX/opt/ant
mkdir -p $TERMUX_PREFIX/opt/ant
cp -r ./* $TERMUX_PREFIX/opt/ant
ln -sfr $TERMUX_PREFIX/opt/ant/bin/ant $TERMUX_PREFIX/bin/ant
}