aboutsummaryrefslogtreecommitdiffstats
path: root/community/maven
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2016-08-17 14:26:24 +0200
committerJakub Jirutka <jakub@jirutka.cz>2016-08-17 14:27:19 +0200
commit5a8bee3bee955285637485a4eb22786dd00a4b26 (patch)
tree394d6b96623a0d6e8161ee88b6379e394327c044 /community/maven
parent189747a26b896a77a057ce06e44648b1320c0a7c (diff)
downloadaports-5a8bee3bee955285637485a4eb22786dd00a4b26.tar.bz2
aports-5a8bee3bee955285637485a4eb22786dd00a4b26.tar.xz
community/maven: move from testing
Diffstat (limited to 'community/maven')
-rw-r--r--community/maven/APKBUILD49
1 files changed, 49 insertions, 0 deletions
diff --git a/community/maven/APKBUILD b/community/maven/APKBUILD
new file mode 100644
index 0000000000..573ffcca86
--- /dev/null
+++ b/community/maven/APKBUILD
@@ -0,0 +1,49 @@
+# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
+# Contributor: Jakub Jirutka <jakub@jirutka.cz>
+# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
+pkgname=maven
+pkgver=3.3.9
+_pkgname="$pkgname-${pkgver%%.*}"
+pkgrel=0
+pkgdesc="A Java project management and project comprehension tool."
+url="http://maven.apache.org"
+# openjdk8 is currently built only for x86*
+arch="x86_64 x86"
+license="ASL-2.0"
+depends="openjdk8-jre"
+source="http://mirror.hosting90.cz/apache/$pkgname/$_pkgname/$pkgver/binaries/apache-$pkgname-$pkgver-bin.tar.gz"
+
+builddir="$srcdir/apache-$pkgname-$pkgver"
+
+package() {
+ local m2_home="/usr/share/java/$_pkgname"
+ local destdir="${pkgdir}${m2_home}"
+
+ cd "$builddir"
+
+ local dir; for dir in bin boot lib; do
+ mkdir -p -m755 "$destdir/$dir"
+ done
+
+ install -m644 -Dt "$destdir"/bin ./bin/*.conf || return 1
+ install -m644 -Dt "$destdir"/boot ./boot/*.jar || return 1
+ install -m644 -Dt "$destdir"/lib ./lib/*.jar || return 1
+ cp -Rp ./conf "$destdir"/ || return 1
+
+ mkdir -p "$pkgdir"/usr/bin || return 1
+
+ local file; for file in mvn mvnDebug mvnyjp; do
+ install -m755 -Dt "$destdir"/bin ./bin/$file || return 1
+ ln -sf "$m2_home"/bin/$file "$pkgdir"/usr/bin/$file || return 1
+ done
+
+ mkdir "$pkgdir"/etc || return 1
+ cat > "$pkgdir"/etc/mavenrc <<-EOF
+ M2_HOME="$m2_home"
+ MAVEN_OPTS=-Xmx512m
+ EOF
+}
+
+md5sums="516923b3955b6035ba6b0a5b031fbd8b apache-maven-3.3.9-bin.tar.gz"
+sha256sums="6e3e9c949ab4695a204f74038717aa7b2689b1be94875899ac1b3fe42800ff82 apache-maven-3.3.9-bin.tar.gz"
+sha512sums="9b4b22aba67af48648c634e30edbb03de2a7742b7d4e58b3d637fcd20358a51ccb288dcbd473169a58b9322f7c8fbedcf5336b87d06460d0b20ce37d4c3948b0 apache-maven-3.3.9-bin.tar.gz"