2021-08-05 18:41:57 +02:00
|
|
|
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"
|
2021-11-11 13:15:04 +01:00
|
|
|
TERMUX_PKG_VERSION=1:7.3
|
2021-10-08 09:10:38 +02:00
|
|
|
TERMUX_PKG_REVISION=1
|
2021-10-06 21:26:44 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://services.gradle.org/distributions/gradle-${TERMUX_PKG_VERSION:2}-all.zip
|
2021-11-11 13:15:04 +01:00
|
|
|
TERMUX_PKG_SHA256=00b273629df4ce46e68df232161d5a7c4e495b9a029ce6e0420f071e21316867
|
2021-08-05 18:41:57 +02:00
|
|
|
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
|
|
|
|
}
|
|
|
|
|