# Template file for 'java-commons-lang'
pkgname=java-commons-lang
version=3.14.0
revision=1
hostmakedepends="apache-maven openjdk17"
depends="virtual?java-runtime"
short_desc="Helper utilities for the java.lang API"
maintainer="classabbyamp <void@placeviolette.net>"
license="Apache-2.0"
homepage="https://commons.apache.org/proper/commons-lang/"
changelog="https://raw.githubusercontent.com/apache/commons-lang/master/RELEASE-NOTES.txt"
distfiles="https://archive.apache.org/dist/commons/lang/source/commons-lang3-${version}-src.tar.gz"
checksum=bc007577652f7cda7d5dc8801f218f88396ea1981cb4482679e839f5781e3b60

do_build() {
	. /etc/profile.d/jdk.sh
	mvn -am -Dmaven.javadoc.skip=true -Dmaven.test.skip=true clean package
}

do_install() {
	vinstall target/commons-lang3-"${version}".jar 644 /usr/lib/java-commons-lang
	ln -s "commons-lang3-$version.jar" "${DESTDIR}"/usr/lib/java-commons-lang/commons-lang.jar

}
