void-packages/srcpkgs/apache-maven/template

26 lines
942 B
Bash

# Template file for 'apache-maven'
pkgname=apache-maven
version=3.5.0
revision=1
hostmakedepends="openjdk"
depends="virtual?java-environment"
noarch=yes
short_desc="Software project management and comprehension tool"
maintainer="Michael Aldridge <aldridge.mac@gmail.com>"
license="Apache-2.0"
homepage="https://maven.apache.org/"
distfiles="https://www-us.apache.org/dist/maven/maven-3/${version}/source/${pkgname}-${version}-src.tar.gz
https://www-us.apache.org/dist/maven/maven-3/${version}/binaries/apache-maven-${version}-bin.tar.gz"
checksum="2f6320069ac2536f0d95d86a2c0a284f22c8edb5f3b4a1a2ccdde6c00b7a80f7
beb91419245395bd69a4a6edad5ca3ec1a8b64e41457672dc687c173a495f034"
do_build() {
./bin/mvn package -Drat.skip=true -Dmaven.repo.local=repo -DdistributionTargetDir=${DESTDIR}/usr/share/${pkgname}/
}
do_install() {
mkdir -p ${DESTDIR}/etc/profile.d
vinstall ${FILESDIR}/apache-maven.sh 0755 etc/profile.d/
vlicense LICENSE
}