From 6e0cabbd3f28ab5ad9cbb60517eb43aeb534be5f Mon Sep 17 00:00:00 2001 From: q66 Date: Wed, 30 Jan 2019 18:19:19 +0100 Subject: [PATCH] apache-maven: fix ELF in /usr/share by removing jansi This fixes ELF in /usr/share, and those prebuilt libraries were useless on everything except their respective target anyway. Disables color output, though. --- srcpkgs/apache-maven/template | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/srcpkgs/apache-maven/template b/srcpkgs/apache-maven/template index f0318eee78b..c700d40a18d 100644 --- a/srcpkgs/apache-maven/template +++ b/srcpkgs/apache-maven/template @@ -2,9 +2,9 @@ pkgname=apache-maven version=3.6.0 revision=1 +noarch=yes hostmakedepends="openjdk" depends="virtual?java-environment" -noarch=yes short_desc="Software project management and comprehension tool" maintainer="Michael Aldridge " license="Apache-2.0" @@ -19,6 +19,11 @@ do_build() { } 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