parent
bfbbf2f35b
commit
fba942c822
|
@ -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/
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
export PATH=$PATH:/usr/share/apache-maven/bin
|
|
@ -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 <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
|
||||
}
|
Loading…
Reference in New Issue