apache-maven: add which, install in /usr/lib, remove noarch.
Also add replaces for apache-maven-bin.
This commit is contained in:
parent
833619b14e
commit
269cd77072
|
@ -1,5 +0,0 @@
|
|||
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/
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
export PATH=$PATH:/usr/share/apache-maven/bin
|
|
@ -1,10 +1,9 @@
|
|||
# Template file for 'apache-maven'
|
||||
pkgname=apache-maven
|
||||
version=3.6.3
|
||||
revision=1
|
||||
archs=noarch
|
||||
revision=2
|
||||
hostmakedepends="openjdk8"
|
||||
depends="virtual?java-environment"
|
||||
depends="virtual?java-environment which"
|
||||
short_desc="Software project management and comprehension tool"
|
||||
maintainer="Michael Aldridge <maldridge@voidlinux.org>"
|
||||
license="Apache-2.0"
|
||||
|
@ -13,19 +12,21 @@ distfiles="https://www-us.apache.org/dist/maven/maven-3/${version}/source/${pkgn
|
|||
https://www-us.apache.org/dist/maven/maven-3/${version}/binaries/apache-maven-${version}-bin.tar.gz"
|
||||
checksum="7c1c990ba64dd4f88688120cc2ec93bf33dd500d2a62ae5cd57bd4b7f6335c07
|
||||
26ad91d751b3a9a53087aefa743f4e16a17741d3915b219cf74112bf87a438c5"
|
||||
replaces="apache-maven-bin>=0"
|
||||
|
||||
do_build() {
|
||||
source /etc/profile.d/10_openjdk8.sh
|
||||
./bin/mvn package -DskipTests -Drat.skip=true -Dmaven.repo.local=repo -DdistributionTargetDir=${DESTDIR}/usr/share/${pkgname}/
|
||||
./bin/mvn package -DskipTests -Drat.skip=true -Dmaven.repo.local=repo -DdistributionTargetDir=${DESTDIR}/usr/lib/${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
|
||||
rm -r ${DESTDIR}/usr/lib/${pkgname}/lib/jansi-native
|
||||
rm ${DESTDIR}/usr/lib/${pkgname}/lib/jansi-*.jar
|
||||
|
||||
mkdir -p ${DESTDIR}/etc/profile.d
|
||||
vinstall ${FILESDIR}/apache-maven.sh 0755 etc/profile.d/
|
||||
vlicense LICENSE
|
||||
vmkdir usr/bin
|
||||
ln -s /usr/lib/${pkgname}/bin/mvn ${DESTDIR}/usr/bin
|
||||
ln -s /usr/lib/${pkgname}/bin/mvnDebug ${DESTDIR}/usr/bin
|
||||
ln -s /usr/lib/${pkgname}/bin/mvnyjp ${DESTDIR}/usr/bin
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue