mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-02-05 01:22:23 +00:00
- 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`.
26 lines
823 B
Bash
26 lines
823 B
Bash
TERMUX_PKG_HOMEPAGE=https://gradle.org/
|
|
TERMUX_PKG_DESCRIPTION="Powerful build system for the JVM"
|
|
TERMUX_PKG_LICENSE="Apache-2.0"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION="1:8.14.3"
|
|
TERMUX_PKG_REVISION=1
|
|
TERMUX_PKG_SRCURL=https://services.gradle.org/distributions/gradle-${TERMUX_PKG_VERSION:2}-bin.zip
|
|
TERMUX_PKG_SHA256=bd71102213493060956ec229d946beee57158dbd89d0e62b91bca0fa2c5f3531
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
TERMUX_PKG_DEPENDS="openjdk-21"
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
TERMUX_PKG_PLATFORM_INDEPENDENT=true
|
|
|
|
termux_step_make_install() {
|
|
rm -f ./bin/*.bat
|
|
rm -rf $TERMUX_PREFIX/opt/gradle
|
|
mkdir -p $TERMUX_PREFIX/opt/gradle
|
|
cp -r ./* $TERMUX_PREFIX/opt/gradle/
|
|
for i in $TERMUX_PREFIX/opt/gradle/bin/*; do
|
|
if [ ! -f "$i" ]; then
|
|
continue
|
|
fi
|
|
ln -sfr $i $TERMUX_PREFIX/bin/$(basename $i)
|
|
done
|
|
}
|