From f0e993c9a25fc3cf2f37d654e9e89dbdce74b01c Mon Sep 17 00:00:00 2001 From: Master Java Date: Wed, 20 Oct 2021 13:55:08 +0600 Subject: [PATCH] Add package: maven (#7766) new package: maven --- packages/maven/build.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 packages/maven/build.sh diff --git a/packages/maven/build.sh b/packages/maven/build.sh new file mode 100644 index 000000000..ff2430af2 --- /dev/null +++ b/packages/maven/build.sh @@ -0,0 +1,24 @@ +TERMUX_PKG_HOMEPAGE=https://maven.apache.org/ +TERMUX_PKG_DESCRIPTION="A Java software project management and comprehension tool" +TERMUX_PKG_LICENSE="Apache-2.0" +TERMUX_PKG_MAINTAINER="@masterjavaofficial" +TERMUX_PKG_VERSION=3.8.3 +TERMUX_PKG_SRCURL=https://dlcdn.apache.org/maven/maven-3/${TERMUX_PKG_VERSION}/binaries/apache-maven-${TERMUX_PKG_VERSION}-bin.tar.gz +TERMUX_PKG_SHA256=0f1597d11085b8fe93d84652a18c6deea71ece9fabba45a02cf6600c7758fd5b +TERMUX_PKG_DEPENDS="openjdk-17" +TERMUX_PKG_BUILD_IN_SRC=true +TERMUX_PKG_PLATFORM_INDEPENDENT=true + +termux_step_make_install() { + # Remove starter scripts for Windows + rm -f bin/*.cmd + # Remove DLL for Windows + rm -rf lib/jansi-native/Windows + rm -rf $TERMUX_PREFIX/opt/maven + mkdir -p $TERMUX_PREFIX/opt + cp -a $TERMUX_PKG_SRCDIR $TERMUX_PREFIX/opt/maven/ + # Symlink only starter scripts for Linux + ln -sfr $TERMUX_PREFIX/opt/maven/bin/mvn $TERMUX_PREFIX/bin/mvn + ln -sfr $TERMUX_PREFIX/opt/maven/bin/mvnDebug $TERMUX_PREFIX/bin/mvnDebug + ln -sfr $TERMUX_PREFIX/opt/maven/bin/mvnyjp $TERMUX_PREFIX/bin/mvnyjp +}