# Template file for 'apache-maven' pkgname=apache-maven version=3.9.8 revision=1 hostmakedepends="openjdk8" depends="virtual?java-environment which" short_desc="Software project management and comprehension tool" maintainer="Michael Aldridge " license="Apache-2.0" homepage="https://maven.apache.org/" distfiles="https://dlcdn.apache.org/maven/maven-3/${version}/source/${pkgname}-${version}-src.tar.gz https://dlcdn.apache.org/maven/maven-3/${version}/binaries/apache-maven-${version}-bin.tar.gz" checksum="c035591b9238d6832c19ad6e56506631f6330ad5c53868a80fdd5eaea365a467 067672629075b740e3d0a928e21021dd615a53287af36d4ccca44e87e081d102" replaces="apache-maven-bin>=0" do_build() { source /etc/profile.d/jdk.sh ./bin/mvn package -DskipTests -Drat.skip=true -Dmaven.repo.local=repo -DdistributionTargetDir=${DESTDIR}/usr/lib/${pkgname} } do_install() { # contains bundled native libraries that might not match the platform # disables ansi color support rm -r ${DESTDIR}/usr/lib/${pkgname}/lib/jansi-native rm ${DESTDIR}/usr/lib/${pkgname}/lib/jansi-*.jar vmkdir usr/bin ln -s /usr/lib/${pkgname}/bin/mvn ${DESTDIR}/usr/bin ln -s /usr/lib/${pkgname}/bin/mvnDebug ${DESTDIR}/usr/bin ln -s /usr/lib/${pkgname}/bin/mvnyjp ${DESTDIR}/usr/bin }