void-packages/srcpkgs/apache-maven/template
2018-11-02 13:18:55 -07:00

25 lines
954 B
Bash

# Template file for 'apache-maven'
pkgname=apache-maven
version=3.6.0
revision=1
hostmakedepends="openjdk"
depends="virtual?java-environment"
noarch=yes
short_desc="Software project management and comprehension tool"
maintainer="Michael Aldridge <maldridge@VoidLinux.eu>"
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="b31c0a4d5b76151a0cbef657e332585a6b7604c39754b4ed93c914cbb1c3599e
6a1b346af36a1f1a491c1c1a141667c5de69b42e6611d3687df26868bc0f4637"
do_build() {
./bin/mvn package -DskipTests -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
}