From f6332a43c35387c4a2dea1746be5fd092890ae0e Mon Sep 17 00:00:00 2001 From: davidovski Date: Mon, 27 Jun 2022 23:09:07 +0100 Subject: added lf and iptables --- repo/maven/maven.xibuild | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 repo/maven/maven.xibuild (limited to 'repo/maven') diff --git a/repo/maven/maven.xibuild b/repo/maven/maven.xibuild new file mode 100644 index 0000000..0d10890 --- /dev/null +++ b/repo/maven/maven.xibuild @@ -0,0 +1,39 @@ +#!/bin/sh + +NAME="maven" +DESC="A Java project management and project comprehension tool." + +MAKEDEPS="" + +PKG_VER=3.8.5 +pkgname="maven-${PKG_VER%%.*}" + +SOURCE="https://archive.apache.org/dist/maven/maven-${PKG_VER%%.*}/$PKG_VER/binaries/apache-maven-$PKG_VER-bin.tar.gz" + +package() { + local m2_home="/usr/share/java/$pkgname" + local destdir="${PKG_DEST}$m2_home" + + local dir; for dir in bin boot lib; do + mkdir -p "$destdir/$dir" + done + + install -m644 -Dt "$destdir"/bin ./bin/*.conf + install -m644 -Dt "$destdir"/boot ./boot/*.jar + install -m644 -Dt "$destdir"/lib ./lib/*.jar + cp -Rp ./conf "$destdir"/ + + mkdir -p "$PKG_DEST"/usr/bin + + local file; for file in mvn mvnDebug mvnyjp; do + install -m755 -Dt "$destdir"/bin ./bin/$file + ln -sf "$m2_home"/bin/$file "$PKG_DEST"/usr/bin/$file + done + + mkdir "$PKG_DEST"/etc + cat > "$PKG_DEST"/etc/mavenrc <<-EOF + M2_HOME="$m2_home" + MAVEN_OPTS="\$MAVEN_OPTS -Xmx512m" + EOF +} + -- cgit v1.2.1