aboutsummaryrefslogtreecommitdiffstats
path: root/community/gradle
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2018-06-25 12:15:39 +0000
committerRoberto Oliveira <robertoguimaraes8@gmail.com>2018-06-25 12:16:41 +0000
commitfc91b90cc19a3733c399ab07b8310be4a38f45f4 (patch)
treeae1b0bc52e56e5de7f0137666a237cff152e91d0 /community/gradle
parentf10878d20c7f64eb9378ba36191c8b09bb5c444d (diff)
downloadaports-fc91b90cc19a3733c399ab07b8310be4a38f45f4.tar.bz2
aports-fc91b90cc19a3733c399ab07b8310be4a38f45f4.tar.xz
community/gradle: move from testing
Diffstat (limited to 'community/gradle')
-rw-r--r--community/gradle/APKBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/community/gradle/APKBUILD b/community/gradle/APKBUILD
new file mode 100644
index 0000000000..21795a3c46
--- /dev/null
+++ b/community/gradle/APKBUILD
@@ -0,0 +1,40 @@
+# Contributor: Roberto Oliveira <robertoguimaraes8@gmail.com>
+# Maintainer: Roberto Oliveira <robertoguimaraes8@gmail.com>
+pkgname=gradle
+pkgver=4.8.1
+pkgrel=0
+pkgdesc="Build tool with a focus on build automation and support for multi-language development"
+url="https://gradle.org/"
+arch="noarch"
+options="!check"
+license="Apache-2.0"
+depends="openjdk8"
+source="https://services.gradle.org/distributions/$pkgname-$pkgver-bin.zip"
+builddir="$srcdir/$pkgname-$pkgver"
+
+package() {
+ local gradlehome="/usr/share/java/$pkgname"
+ local destdir="$pkgdir/$gradlehome"
+
+ cd "$builddir"
+
+ install -dm755 "$destdir"/bin
+ rm bin/*.bat
+ install -m755 bin/* "$destdir"/bin
+
+ install -dm755 "$pkgdir"/usr/bin
+ ln -sf $gradlehome/bin/gradle "$pkgdir"/usr/bin/gradle
+
+ install -dm755 "$destdir"/lib
+ install -m644 lib/*.jar "$destdir"/lib
+
+ install -dm755 "$destdir"/lib/plugins
+ install -m644 lib/plugins/*.jar "$destdir"/lib/plugins
+
+ # NOTICE file should be redistributed for derivative works
+ local file; for file in LICENSE NOTICE; do
+ install -m644 -D $file "$pkgdir"/usr/share/licenses/$pkgname/$file
+ done
+}
+
+sha512sums="63e77c44f3ff57a7617e128369bab084cfbbf95b12a06c8ee80ac61a419b6ae43ef240049629052856cc3c650bbf79959c200c336c3eba87f920aa4df9fca1dc gradle-4.8.1-bin.zip"