31 lines
1.1 KiB
Bash
31 lines
1.1 KiB
Bash
# Template file for 'apache-maven'
|
|
pkgname=apache-maven
|
|
version=3.6.2
|
|
revision=1
|
|
archs=noarch
|
|
hostmakedepends="openjdk"
|
|
depends="virtual?java-environment"
|
|
short_desc="Software project management and comprehension tool"
|
|
maintainer="Michael Aldridge <maldridge@voidlinux.org>"
|
|
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="7ed94655b4098729de292a13c96765bb90a407bb6feb64f201a9444aebde69d1
|
|
3fbc92d1961482d6fbd57fbf3dd6d27a4de70778528ee3fb44aa7d27eb32dfdc"
|
|
|
|
do_build() {
|
|
./bin/mvn package -DskipTests -Drat.skip=true -Dmaven.repo.local=repo -DdistributionTargetDir=${DESTDIR}/usr/share/${pkgname}/
|
|
}
|
|
|
|
do_install() {
|
|
# contains bundled native libraries that might not match the platform
|
|
# disables ansi color support
|
|
rm -rf ${DESTDIR}/usr/share/${pkgname}/lib/jansi-native
|
|
rm -f ${DESTDIR}/usr/share/${pkgname}/lib/jansi-*.jar
|
|
|
|
mkdir -p ${DESTDIR}/etc/profile.d
|
|
vinstall ${FILESDIR}/apache-maven.sh 0755 etc/profile.d/
|
|
vlicense LICENSE
|
|
}
|