From 41461cff929a2b0249fc98677ecf9bd6f35f13d9 Mon Sep 17 00:00:00 2001 From: Wisest_wizard Date: Sun, 1 Aug 2021 16:08:40 +0530 Subject: [PATCH 1/4] Add package: gradle --- packages/gradle/build.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 packages/gradle/build.sh diff --git a/packages/gradle/build.sh b/packages/gradle/build.sh new file mode 100644 index 000000000000000..fb55d1e75052652 --- /dev/null +++ b/packages/gradle/build.sh @@ -0,0 +1,23 @@ +TERMUX_PKG_HOMEPAGE=https://gradle.org/ +TERMUX_PKG_DESCRIPTION="Adaptable, fast automation for all" +TERMUX_PKG_LICENSE="Apache-2.0" +TERMUX_PKG_MAINTAINER="@termux" +TERMUX_PKG_VERSION=7.1.1 +TERMUX_PKG_SRCURL=https://services.gradle.org/distributions/gradle-$TERMUX_PKG_VERSION-all.zip +TERMUX_PKG_SHA256=9bb8bc05f562f2d42bdf1ba8db62f6b6fa1c3bf6c392228802cc7cb0578fe7e0 +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 +} From 4b5c22c0b03152291360c8c2c19965d71c769fc6 Mon Sep 17 00:00:00 2001 From: Wisest_wizard <12suhangp34@gmail.com> Date: Sun, 1 Aug 2021 17:23:48 +0530 Subject: [PATCH 2/4] edit description --- packages/gradle/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/gradle/build.sh b/packages/gradle/build.sh index fb55d1e75052652..a2a5258153fd2e5 100644 --- a/packages/gradle/build.sh +++ b/packages/gradle/build.sh @@ -1,5 +1,5 @@ TERMUX_PKG_HOMEPAGE=https://gradle.org/ -TERMUX_PKG_DESCRIPTION="Adaptable, fast automation for all" +TERMUX_PKG_DESCRIPTION="Powerful build system for the JVM" TERMUX_PKG_LICENSE="Apache-2.0" TERMUX_PKG_MAINTAINER="@termux" TERMUX_PKG_VERSION=7.1.1 From 1cc3ae94d872cc3674da1097cc3741cfe4aef0c7 Mon Sep 17 00:00:00 2001 From: Wisest_wizard <12suhangp34@gmail.com> Date: Tue, 3 Aug 2021 07:25:46 +0530 Subject: [PATCH 3/4] use gradle nightly --- packages/gradle/build.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/gradle/build.sh b/packages/gradle/build.sh index a2a5258153fd2e5..4503606b73137ea 100644 --- a/packages/gradle/build.sh +++ b/packages/gradle/build.sh @@ -2,9 +2,9 @@ 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=7.1.1 +TERMUX_PKG_VERSION=7.2-rc-1 TERMUX_PKG_SRCURL=https://services.gradle.org/distributions/gradle-$TERMUX_PKG_VERSION-all.zip -TERMUX_PKG_SHA256=9bb8bc05f562f2d42bdf1ba8db62f6b6fa1c3bf6c392228802cc7cb0578fe7e0 +TERMUX_PKG_SHA256=393c025c09cb6fc79e6924c676f403da8fcfe4dbd98e2fb903909c98b8178d40 TERMUX_PKG_DEPENDS="openjdk-17" TERMUX_PKG_BUILD_IN_SRC=true TERMUX_PKG_PLATFORM_INDEPENDENT=true @@ -21,3 +21,4 @@ termux_step_make_install() { ln -sfr $i $TERMUX_PREFIX/bin/$(basename $i) done } + From 9189c519b421a8b00aff95729f538798e84dc7c7 Mon Sep 17 00:00:00 2001 From: Wisest_wizard <12suhangp34@gmail.com> Date: Tue, 3 Aug 2021 08:21:46 +0530 Subject: [PATCH 4/4] update checksum --- packages/gradle/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/gradle/build.sh b/packages/gradle/build.sh index 4503606b73137ea..129fef5f655c795 100644 --- a/packages/gradle/build.sh +++ b/packages/gradle/build.sh @@ -4,7 +4,7 @@ TERMUX_PKG_LICENSE="Apache-2.0" TERMUX_PKG_MAINTAINER="@termux" TERMUX_PKG_VERSION=7.2-rc-1 TERMUX_PKG_SRCURL=https://services.gradle.org/distributions/gradle-$TERMUX_PKG_VERSION-all.zip -TERMUX_PKG_SHA256=393c025c09cb6fc79e6924c676f403da8fcfe4dbd98e2fb903909c98b8178d40 +TERMUX_PKG_SHA256=f5d0a78d8a838b5967bbabd10ecc414474e05b373fb34b33c917265138d78c57 TERMUX_PKG_DEPENDS="openjdk-17" TERMUX_PKG_BUILD_IN_SRC=true TERMUX_PKG_PLATFORM_INDEPENDENT=true