0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-05-12 18:23:18 +00:00
Files
termux-packages/packages/gradle/build.sh
Termux Github Actions 8363a66a99 bump(main/gradle): 8.14
This commit has been automatically submitted by Github Actions.
2025-04-25 18:13:31 +00:00

25 lines
799 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"
TERMUX_PKG_SRCURL=https://services.gradle.org/distributions/gradle-${TERMUX_PKG_VERSION:2}-bin.zip
TERMUX_PKG_SHA256=61ad310d3c7d3e5da131b76bbf22b5a4c0786e9d892dae8c1658d4b484de3caa
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_DEPENDS="openjdk-17"
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
}