void-packages/srcpkgs/apache-maven/template

36 lines
914 B
Bash

# Template file for 'apache-maven'
pkgname=apache-maven
version=3.3.9
revision=1
hostmakedepends="apache-ant 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="http://www-us.apache.org/dist/maven/maven-3/${version}/source/${pkgname}-${version}-src.tar.gz"
checksum=9150475f509b23518e67a220a9d3a821648ab27550f4ece4d07b92b1fc5611bc
do_build() {
ant -Dmaven.home=mvn-complete
}
post_build() {
rm mvn-complete/bin/*.cmd
}
do_install() {
_installRoot=${DESTDIR}/usr/share/${pkgname}/
mkdir -p ${_installRoot}
for _dir in bin boot conf lib ; do
cp -r mvn-complete/${_dir} ${_installRoot}/${_dir}
done
mkdir -p ${DESTDIR}/etc/profile.d
vinstall ${FILESDIR}/apache-maven.sh 0755 etc/profile.d/
vlicense LICENSE
}