[arch-commits] Commit in gradle/trunk (PKGBUILD)

Levente Polyak anthraxx at archlinux.org
Fri Sep 25 22:23:41 UTC 2020


    Date: Friday, September 25, 2020 @ 22:23:41
  Author: anthraxx
Revision: 712326

upgpkg: gradle 6.6.1-2: move optdepends to gradle

Modified:
  gradle/trunk/PKGBUILD

----------+
 PKGBUILD |   14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-09-25 21:41:24 UTC (rev 712325)
+++ PKGBUILD	2020-09-25 22:23:41 UTC (rev 712326)
@@ -6,7 +6,7 @@
 pkgbase=gradle
 pkgname=('gradle' 'gradle-doc' 'gradle-src')
 pkgver=6.6.1
-pkgrel=1
+pkgrel=2
 pkgdesc='Powerful build system for the JVM'
 url='https://gradle.org/'
 arch=('any')
@@ -31,6 +31,10 @@
 
 package_gradle() {
   cd ${pkgbase}-${pkgver}/dist
+  optdepends=(
+    'gradle-doc: gradle documentation'
+    'gradle-src: gradle sources'
+  )
 
   # install profile.d script
   install -Dm 755 "${srcdir}/${pkgbase}.sh" "${pkgdir}/etc/profile.d/${pkgbase}.sh"
@@ -55,21 +59,17 @@
 }
 
 package_gradle-doc() {
-  pkgdesc='Powerful build system for the JVM (documentation)'
+  pkgdesc+=' (documentation)'
   options=('!strip')
-  optdepends=('gradle')
 
   cd ${pkgbase}-${pkgver}/dist
-
-  # copy across documentation
   install -d "${pkgdir}/usr/share/java/gradle/docs"
   cp -r docs/* "${pkgdir}/usr/share/java/gradle/docs"
 }
 
 package_gradle-src() {
-  pkgdesc='Powerful build system for the JVM (sources)'
+  pkgdesc+=' (sources)'
   options=('!strip')
-  optdepends=('gradle')
 
   cd ${pkgbase}-${pkgver}/dist
   install -d "${pkgdir}/usr/share/java/gradle/src"


More information about the arch-commits mailing list