diff options
author | davidovski <david@davidovski.xyz> | 2022-06-27 23:09:07 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-06-27 23:09:07 +0100 |
commit | f6332a43c35387c4a2dea1746be5fd092890ae0e (patch) | |
tree | d6599f63de04096f3fc21a98e0b3bb39d55a3531 /repo/maven/maven.xibuild | |
parent | f13e0cac13f90f7f57bce3b26b2e6383de6e4ad2 (diff) |
added lf and iptables
Diffstat (limited to 'repo/maven/maven.xibuild')
-rw-r--r-- | repo/maven/maven.xibuild | 39 |
1 files changed, 39 insertions, 0 deletions
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 +} + |