mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-02-04 09:02:44 +00:00
- Fixes https://github.com/termux/termux-packages/issues/25027 - JDK 21 has been released for a year, so theoretically, all packages should be ready now, but it will be necessary to test each package's basic functionality with `openjdk-21` installed, to make sure that they are compatible. - Now that https://github.com/termux/termux-packages/pull/25214 has been merged, it should be easier for termux-apt users whose `java` command is set to `openjdk-17`, to get it automatically updated to `openjdk-21` without necessarily having to uninstall `openjdk-17`.
25 lines
930 B
Bash
25 lines
930 B
Bash
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.18.0"
|
|
TERMUX_PKG_SRCURL=https://dlcdn.apache.org/commons/lang/source/commons-lang3-${TERMUX_PKG_VERSION}-src.tar.gz
|
|
TERMUX_PKG_SHA256=4a94ddeb6a5819c5d0aa5678d16cf97a672b06398b93a0e4f90594032ca991f7
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
TERMUX_PKG_DEPENDS="openjdk-21"
|
|
TERMUX_PKG_PLATFORM_INDEPENDENT=true
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
|
|
termux_step_make() {
|
|
cd src/main/java
|
|
javac -encoding UTF-8 -source 1.8 -target 1.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/
|
|
}
|