From 713cd06a2fe054f5c41c8c1902bb644b0971ab4f Mon Sep 17 00:00:00 2001 From: Suhan G Paradkar <76830230+suhan-paradkar@users.noreply.github.com> Date: Mon, 2 Aug 2021 17:40:38 +0530 Subject: [PATCH] new packages: groovy, scala (#7226) --- packages/groovy/build.sh | 23 +++++++++++++++++++++++ packages/scala/build.sh | 23 +++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 packages/groovy/build.sh create mode 100644 packages/scala/build.sh diff --git a/packages/groovy/build.sh b/packages/groovy/build.sh new file mode 100644 index 000000000..5a95b8bd4 --- /dev/null +++ b/packages/groovy/build.sh @@ -0,0 +1,23 @@ +TERMUX_PKG_HOMEPAGE=https://groovy-lang.org/ +TERMUX_PKG_DESCRIPTION="A powerful multi-faceted programming language for the JVM platform" +TERMUX_PKG_LICENSE="Apache-2.0" +TERMUX_PKG_MAINTAINER="@termux" +TERMUX_PKG_VERSION=3.0.8 +TERMUX_PKG_SRCURL=https://groovy.jfrog.io/artifactory/dist-release-local/groovy-zips/apache-groovy-binary-$TERMUX_PKG_VERSION.zip +TERMUX_PKG_SHA256=87cf2a61b77f6378ae1081cfda9d14bc651271b25ffac57fc936cd17662e3240 +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/groovy + mkdir -p $TERMUX_PREFIX/opt/groovy + cp -r ./* $TERMUX_PREFIX/opt/groovy/ + for i in $TERMUX_PREFIX/opt/groovy/bin/*; do + if [ ! -f "$i" ]; then + continue + fi + ln -sfr $i $TERMUX_PREFIX/bin/$(basename $i) + done +} diff --git a/packages/scala/build.sh b/packages/scala/build.sh new file mode 100644 index 000000000..98dda7622 --- /dev/null +++ b/packages/scala/build.sh @@ -0,0 +1,23 @@ +TERMUX_PKG_HOMEPAGE=https://www.scala-lang.org +TERMUX_PKG_DESCRIPTION="Scala 2 compiler and standard library." +TERMUX_PKG_LICENSE="Apache-2.0" +TERMUX_PKG_MAINTAINER="@termux" +TERMUX_PKG_VERSION=2.12.14 +TERMUX_PKG_SRCURL=https://downloads.lightbend.com/scala/$TERMUX_PKG_VERSION/scala-$TERMUX_PKG_VERSION.tgz +TERMUX_PKG_SHA256=fd7e3e4032288013a29c0a1447c597faf7b0e499762c0d981db21099e9780426 +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/scala + mkdir -p $TERMUX_PREFIX/opt/scala + cp -r ./* $TERMUX_PREFIX/opt/scala/ + for i in $TERMUX_PREFIX/opt/scala/bin/*; do + if [ ! -f "$i" ]; then + continue + fi + ln -sfr $i $TERMUX_PREFIX/bin/$(basename $i) + done +}