summaryrefslogtreecommitdiff
path: root/repo/maven
diff options
context:
space:
mode:
Diffstat (limited to 'repo/maven')
-rw-r--r--repo/maven/maven.xibuild39
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
+}
+