[arch-commits] Commit in gradle/repos/community-any (4 files)
Levente Polyak
anthraxx at archlinux.org
Wed Oct 9 14:54:59 UTC 2019
Date: Wednesday, October 9, 2019 @ 14:54:58
Author: anthraxx
Revision: 514359
archrelease: copy trunk to community-any
Added:
gradle/repos/community-any/PKGBUILD
(from rev 514358, gradle/trunk/PKGBUILD)
gradle/repos/community-any/gradle.sh
(from rev 514358, gradle/trunk/gradle.sh)
Deleted:
gradle/repos/community-any/PKGBUILD
gradle/repos/community-any/gradle.sh
-----------+
PKGBUILD | 169 +++++++++++++++++++++++++++++++-----------------------------
gradle.sh | 4 -
2 files changed, 90 insertions(+), 83 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-10-09 14:54:53 UTC (rev 514358)
+++ PKGBUILD 2019-10-09 14:54:58 UTC (rev 514359)
@@ -1,81 +0,0 @@
-# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
-# Contributor: Simon Legner <Simon.Legner at gmail.com>
-# Contributor: Chris Molozian (novabyte) <chris DOT molozian AT gmail DOT com>
-# Contributor: Sanjuro Makabe (itti) <vuck AT gmx DOT de>
-
-pkgbase=gradle
-pkgname=('gradle' 'gradle-doc' 'gradle-src')
-pkgver=5.6.2
-pkgrel=1
-pkgdesc='Powerful build system for the JVM'
-url='https://gradle.org/'
-arch=('any')
-license=('Apache')
-depends=('java-environment' 'bash')
-makedepends=('git' 'gradle' 'asciidoc' 'xmlto' 'kotlin' 'groovy' 'java-environment=11')
-source=(https://services.gradle.org/distributions/${pkgbase}-${pkgver}-src.zip
- ${pkgbase}.sh)
-sha256sums=('bc03088fc7ecb43181b48367bd7589684340f9ae4ffd108fa717e49f4b0d3544'
- '7cdd70370b92b297f350d5ff69b915359bdc37b4feac839696b0ab5eaa7d7c2a')
-sha512sums=('ad91ce5153c39bd21aaee2011b412358c4196a8106f7d83262b065bad650a15e7a5105d47fc5a21e400fbb366cd5259a60761779f0e76ec94e7401021a6f747b'
- 'f38e9b26e22948366acf6580d6f38e2c88c3791c425b24922368fe1bc78c744fa516a03ffdbef02e3755859da620a6259997d4b4e5f97e3dc8cb49b74a694616')
-
-build() {
- cd ${pkgbase}-${pkgver}
- export PATH="/usr/lib/jvm/java-11-openjdk/bin:${PATH}"
- ./gradlew installAll -PfinalRelease=true -Pgradle_installPath="$(pwd)/dist"
-}
-
-package_gradle() {
- cd ${pkgbase}-${pkgver}/dist
-
- # install profile.d script
- install -Dm 755 "${srcdir}/${pkgbase}.sh" "${pkgdir}/etc/profile.d/${pkgbase}.sh"
-
- # create the necessary directory structure
- install -d "${pkgdir}/usr/share/java/${pkgname}/bin"
- install -d "${pkgdir}/usr/share/java/${pkgname}/lib/plugins"
- install -d "${pkgdir}/usr/share/java/${pkgname}/init.d"
- install -d "${pkgdir}/usr/bin"
-
- # copy across jar files
- install -Dm 644 lib/*.jar "${pkgdir}/usr/share/java/${pkgname}/lib"
- install -Dm 644 lib/plugins/*.jar "${pkgdir}/usr/share/java/${pkgname}/lib/plugins"
-
- # copy across supporting text documentation and scripts
- install -m 644 NOTICE "${pkgdir}/usr/share/java/${pkgname}"
- install -m 644 *.html "${pkgdir}/usr/share/java/${pkgname}"
- install -m 755 bin/gradle "${pkgdir}/usr/share/java/${pkgname}/bin"
- install -m 644 init.d/*.* "${pkgdir}/usr/share/java/${pkgname}/init.d"
-
- # link gradle script to /usr/bin
- ln -s /usr/share/java/${pkgname}/bin/${pkgname} "${pkgdir}/usr/bin"
-}
-
-package_gradle-doc() {
- pkgdesc='Powerful build system for the JVM (documentation and samples)'
- options=('!strip')
- optdepends=('gradle')
-
- cd ${pkgbase}-${pkgver}/dist
-
- # create the necessary directory structure
- install -d "${pkgdir}/usr/share/java/gradle/docs"
- install -d "${pkgdir}/usr/share/java/gradle/samples"
-
- # copy across documentation and samples
- cp -r docs/* "${pkgdir}/usr/share/java/gradle/docs"
- cp -r samples/* "${pkgdir}/usr/share/java/gradle/samples"
-}
-
-package_gradle-src() {
- pkgdesc='Powerful build system for the JVM (sources)'
- options=('!strip')
- optdepends=('gradle')
-
- cd ${pkgbase}-${pkgver}/dist
- install -d "${pkgdir}/usr/share/java/gradle/src"
- cp -r src/* "${pkgdir}/usr/share/java/gradle/src"
-}
-
-# vim: ts=2 sw=2 et:
Copied: gradle/repos/community-any/PKGBUILD (from rev 514358, gradle/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-10-09 14:54:58 UTC (rev 514359)
@@ -0,0 +1,88 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Simon Legner <Simon.Legner at gmail.com>
+# Contributor: Chris Molozian (novabyte) <chris DOT molozian AT gmail DOT com>
+# Contributor: Sanjuro Makabe (itti) <vuck AT gmx DOT de>
+
+pkgbase=gradle
+pkgname=('gradle' 'gradle-doc' 'gradle-src')
+pkgver=5.6.2
+pkgrel=2
+pkgdesc='Powerful build system for the JVM'
+url='https://gradle.org/'
+arch=('any')
+license=('Apache')
+depends=('java-environment=11' 'bash')
+makedepends=('git' 'gradle' 'asciidoc' 'xmlto' 'kotlin' 'groovy' 'java-environment=11')
+source=(https://services.gradle.org/distributions/${pkgbase}-${pkgver}-src.zip
+ ${pkgbase}.sh)
+sha256sums=('bc03088fc7ecb43181b48367bd7589684340f9ae4ffd108fa717e49f4b0d3544'
+ '7cdd70370b92b297f350d5ff69b915359bdc37b4feac839696b0ab5eaa7d7c2a')
+sha512sums=('ad91ce5153c39bd21aaee2011b412358c4196a8106f7d83262b065bad650a15e7a5105d47fc5a21e400fbb366cd5259a60761779f0e76ec94e7401021a6f747b'
+ 'f38e9b26e22948366acf6580d6f38e2c88c3791c425b24922368fe1bc78c744fa516a03ffdbef02e3755859da620a6259997d4b4e5f97e3dc8cb49b74a694616')
+
+prepare() {
+ cd ${pkgbase}-${pkgver}
+ # https://github.com/gradle/gradle/issues/8681
+ sed 's|JAVACMD="java"|JAVACMD="/usr/lib/jvm/java-11-openjdk/bin/java"|' -i gradlew \
+ subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
+}
+
+build() {
+ cd ${pkgbase}-${pkgver}
+ export PATH="/usr/lib/jvm/java-11-openjdk/bin:${PATH}"
+ ./gradlew installAll -PfinalRelease=true -Pgradle_installPath="$(pwd)/dist"
+}
+
+package_gradle() {
+ cd ${pkgbase}-${pkgver}/dist
+
+ # install profile.d script
+ install -Dm 755 "${srcdir}/${pkgbase}.sh" "${pkgdir}/etc/profile.d/${pkgbase}.sh"
+
+ # create the necessary directory structure
+ install -d "${pkgdir}/usr/share/java/${pkgname}/bin"
+ install -d "${pkgdir}/usr/share/java/${pkgname}/lib/plugins"
+ install -d "${pkgdir}/usr/share/java/${pkgname}/init.d"
+ install -d "${pkgdir}/usr/bin"
+
+ # copy across jar files
+ install -Dm 644 lib/*.jar "${pkgdir}/usr/share/java/${pkgname}/lib"
+ install -Dm 644 lib/plugins/*.jar "${pkgdir}/usr/share/java/${pkgname}/lib/plugins"
+
+ # copy across supporting text documentation and scripts
+ install -m 644 NOTICE "${pkgdir}/usr/share/java/${pkgname}"
+ install -m 644 *.html "${pkgdir}/usr/share/java/${pkgname}"
+ install -m 755 bin/gradle "${pkgdir}/usr/share/java/${pkgname}/bin"
+ install -m 644 init.d/*.* "${pkgdir}/usr/share/java/${pkgname}/init.d"
+
+ # link gradle script to /usr/bin
+ ln -s /usr/share/java/${pkgname}/bin/${pkgname} "${pkgdir}/usr/bin"
+}
+
+package_gradle-doc() {
+ pkgdesc='Powerful build system for the JVM (documentation and samples)'
+ options=('!strip')
+ optdepends=('gradle')
+
+ cd ${pkgbase}-${pkgver}/dist
+
+ # create the necessary directory structure
+ install -d "${pkgdir}/usr/share/java/gradle/docs"
+ install -d "${pkgdir}/usr/share/java/gradle/samples"
+
+ # copy across documentation and samples
+ cp -r docs/* "${pkgdir}/usr/share/java/gradle/docs"
+ cp -r samples/* "${pkgdir}/usr/share/java/gradle/samples"
+}
+
+package_gradle-src() {
+ pkgdesc='Powerful build system for the JVM (sources)'
+ options=('!strip')
+ optdepends=('gradle')
+
+ cd ${pkgbase}-${pkgver}/dist
+ install -d "${pkgdir}/usr/share/java/gradle/src"
+ cp -r src/* "${pkgdir}/usr/share/java/gradle/src"
+}
+
+# vim: ts=2 sw=2 et:
Deleted: gradle.sh
===================================================================
--- gradle.sh 2019-10-09 14:54:53 UTC (rev 514358)
+++ gradle.sh 2019-10-09 14:54:58 UTC (rev 514359)
@@ -1,2 +0,0 @@
-#!/usr/bin/env sh
-export GRADLE_HOME=/usr/share/java/gradle
Copied: gradle/repos/community-any/gradle.sh (from rev 514358, gradle/trunk/gradle.sh)
===================================================================
--- gradle.sh (rev 0)
+++ gradle.sh 2019-10-09 14:54:58 UTC (rev 514359)
@@ -0,0 +1,2 @@
+#!/usr/bin/env sh
+export GRADLE_HOME=/usr/share/java/gradle
More information about the arch-commits
mailing list