2021-10-20 09:55:08 +02:00
|
|
|
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"
|
2022-04-04 07:28:06 +02:00
|
|
|
TERMUX_PKG_VERSION=3.8.5
|
2021-10-20 09:55:08 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://dlcdn.apache.org/maven/maven-3/${TERMUX_PKG_VERSION}/binaries/apache-maven-${TERMUX_PKG_VERSION}-bin.tar.gz
|
2022-04-04 07:28:06 +02:00
|
|
|
TERMUX_PKG_SHA256=88e30700f32a3f60e0d28d0f12a3525d29b7c20c72d130153df5b5d6d890c673
|
2022-01-04 18:22:53 +01:00
|
|
|
TERMUX_PKG_DEPENDS="libjansi, openjdk-17"
|
2021-10-20 09:55:08 +02:00
|
|
|
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
|
2022-01-04 18:22:53 +01:00
|
|
|
ln -sf $TERMUX_PREFIX/lib/libjansi.so lib/jansi-native/
|
2021-10-20 09:55:08 +02:00
|
|
|
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
|
2022-04-04 07:28:06 +02:00
|
|
|
for i in mvn mvnDebug mvnyjp; do
|
|
|
|
ln -sfr $TERMUX_PREFIX/opt/maven/bin/$i $TERMUX_PREFIX/bin/$i
|
|
|
|
done
|
2021-10-20 09:55:08 +02:00
|
|
|
}
|