[arch-commits] Commit in groovy/repos/community-any (PKGBUILD)

Alexander Rødseth arodseth at archlinux.org
Sat Jul 8 13:33:31 UTC 2017


    Date: Saturday, July 8, 2017 @ 13:33:30
  Author: arodseth
Revision: 243331

archrelease: copy trunk to community-any

Added:
  groovy/repos/community-any/PKGBUILD
    (from rev 243330, groovy/trunk/PKGBUILD)

----------+
 PKGBUILD |   64 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 64 insertions(+)

Copied: groovy/repos/community-any/PKGBUILD (from rev 243330, groovy/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2017-07-08 13:33:30 UTC (rev 243331)
@@ -0,0 +1,64 @@
+# $Id$
+# Maintainer: Alexander F Rødseth <xyproto at archlinux.org>
+# Contributor: Musikolo <musikolo at hotmail.com>
+# Contributor: Ruben Fonseca <fonseka at gmail.com>
+# Contributor: Andreas W. Hauser <andy-aur at splashground.de>
+
+pkgname=groovy
+pkgver=2.4.12
+pkgrel=1
+pkgdesc='Programming language based on Java, inspired by Python, Ruby and Smalltalk'
+arch=('any')
+url='http://groovy-lang.org/'
+license=('APACHE')
+depends=('bash' 'java-environment')
+optdepends=('groovy-docs: html and pdf documentation for Groovy')
+makedepends=('gendesk')
+# .asc file is available for download, but there was no key available
+source=("https://dl.bintray.com/groovy/maven/apache-$pkgname-binary-$pkgver.zip"
+        "$pkgname.png::https://raw.githubusercontent.com/apache/incubator-groovy/master/subprojects/groovy-console/src/main/resources/groovy/ui/ConsoleIcon.png")
+sha256sums=('93b9a19c760c2af846afa0e9c78692d70186cdde36e070e9806fe11b84a8a7b6'
+            '24e539235b5762b1220f39d7953a52e9b4a458c2be4f66a60219755363ba6dba')
+
+prepare() {
+  # Generate desktop shortcut
+  gendesk -f -n \
+    --pkgname "$pkgname" \
+    --pkgdesc 'Groovy programming language' \
+    --exec 'groovyConsole' \
+    --name 'Groovy Console'
+
+  # Set GROOVY_HOME correctly at the top of all the scripts.
+  # There are probably better ways to do this, but this works.
+  for f in "$pkgname-$pkgver/bin/"*; do
+    sed 's:bin/sh:bin/sh\nGROOVY_HOME=/usr/share/groovy:' -i "$f"
+  done
+
+  cd "$pkgname-$pkgver/embeddable"
+  ln -s "$pkgname-all-$pkgver.jar" "$pkgname-all.jar"
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+
+  # Create the directories and package the files
+  install -d "$pkgdir/usr/share/groovy" "$pkgdir/usr/bin"
+  cp -r lib conf embeddable "$pkgdir/usr/share/groovy"
+  cp bin/* "$pkgdir/usr/bin"
+
+  # Remove all DOS/Windows batch files
+  find $pkgdir -name '*.bat' -exec rm {} \;
+
+  # Package the license file
+  install -Dm644 LICENSE \
+    "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+  # Package the desktop shortcut for Groovy Console
+  install -Dm644 "$srcdir/$pkgname.desktop" \
+    "$pkgdir/usr/share/applications/$pkgname.desktop"
+  install -Dm644 "$srcdir/$pkgname.png" \
+    "$pkgdir/usr/share/pixmaps/$pkgname.png"
+}
+
+# getver: groovy-lang.org/changelogs.html
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list