void-packages/srcpkgs/apache-maven/template

26 lines
942 B
Bash

# Template file for 'apache-maven'
pkgname=apache-maven
version=3.5.2
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="246653dd9920f87b54c67ff4651b32d78ac4d7da973c10a6c8b1c70d9e6d0305
707b1f6e390a65bde4af4cdaf2a24d45fc19a6ded00fff02e91626e3e42ceaff"
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
}