void-packages/srcpkgs/java-commons-lang/template

25 lines
915 B
Bash

# Template file for 'java-commons-lang'
pkgname=java-commons-lang
version=3.17.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=658364ef455f85161b90e39c24b7322265fcc0d48d3cd7bee33a10bd962a3a41
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
}