From 7aa247adf19f45f1c52ec317ae57db40a5125987 Mon Sep 17 00:00:00 2001 From: Tee KOBAYASHI Date: Sun, 12 Dec 2021 01:02:51 +0900 Subject: [PATCH] new package: libcommons-lang3-java --- packages/libcommons-lang3-java/build.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 packages/libcommons-lang3-java/build.sh diff --git a/packages/libcommons-lang3-java/build.sh b/packages/libcommons-lang3-java/build.sh new file mode 100644 index 000000000..874912646 --- /dev/null +++ b/packages/libcommons-lang3-java/build.sh @@ -0,0 +1,23 @@ +TERMUX_PKG_HOMEPAGE=https://commons.apache.org/proper/commons-lang/ +TERMUX_PKG_DESCRIPTION="A host of helper utilities for the java.lang API" +TERMUX_PKG_LICENSE="Apache-2.0" +TERMUX_PKG_MAINTAINER="@termux" +TERMUX_PKG_VERSION=3.12.0 +TERMUX_PKG_SRCURL=https://dlcdn.apache.org/commons/lang/source/commons-lang3-${TERMUX_PKG_VERSION}-src.tar.gz +TERMUX_PKG_SHA256=fb73e7475cb76fc400a58da92b8d8d930717424917f96b80bb70f4366fd8ac25 +TERMUX_PKG_DEPENDS="openjdk-17" +TERMUX_PKG_PLATFORM_INDEPENDENT=true +TERMUX_PKG_BUILD_IN_SRC=true + +termux_step_make() { + cd src/main/java + javac -encoding UTF-8 $(find . -name "*.java") + _BUILD_JARFILE="$TERMUX_PKG_BUILDDIR/commons-lang3.jar" + rm -f "$_BUILD_JARFILE" + jar cf "$_BUILD_JARFILE" $(find . -name "*.class") +} + +termux_step_make_install() { + mkdir -p $TERMUX_PREFIX/share/java + install -Dm600 "$_BUILD_JARFILE" $TERMUX_PREFIX/share/java/ +}