diff --git a/srcpkgs/apache-maven/INSTALL.msg b/srcpkgs/apache-maven/INSTALL.msg new file mode 100644 index 00000000000..d49b2df7f77 --- /dev/null +++ b/srcpkgs/apache-maven/INSTALL.msg @@ -0,0 +1,5 @@ +Apache Maven makes use of shell variables which you could set +by logging out and logging back in. Alternatively you may source +/etc/profile.d/apache-maven.sh in your shell. +Additionally note that the primary installation, including configuration +files, is under /usr/share/apache-maven/ diff --git a/srcpkgs/apache-maven/files/apache-maven.sh b/srcpkgs/apache-maven/files/apache-maven.sh new file mode 100644 index 00000000000..c5e1cd0f192 --- /dev/null +++ b/srcpkgs/apache-maven/files/apache-maven.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +export PATH=$PATH:/usr/share/apache-maven/bin diff --git a/srcpkgs/apache-maven/template b/srcpkgs/apache-maven/template new file mode 100644 index 00000000000..1aed9ba5c15 --- /dev/null +++ b/srcpkgs/apache-maven/template @@ -0,0 +1,35 @@ +# 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 " +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 +}