Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add package: gradle #7227

Merged
4 commits merged into from
Aug 5, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions packages/gradle/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
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.2-rc-1
TERMUX_PKG_SRCURL=https://services.gradle.org/distributions/gradle-$TERMUX_PKG_VERSION-all.zip
TERMUX_PKG_SHA256=f5d0a78d8a838b5967bbabd10ecc414474e05b373fb34b33c917265138d78c57
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
}