termux-packages/packages/groovy/build.sh
2021-09-13 17:43:18 +01:00

24 lines
837 B
Bash

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.9
TERMUX_PKG_SRCURL=https://groovy.jfrog.io/artifactory/dist-release-local/groovy-zips/apache-groovy-binary-$TERMUX_PKG_VERSION.zip
TERMUX_PKG_SHA256=eb34f4ee229b1a424adb87df5b999f66d1b1285694e5332d0800896744c2e421
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
}