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

Alexander Rødseth arodseth at nymeria.archlinux.org
Mon Nov 4 08:29:53 UTC 2013


    Date: Monday, November 4, 2013 @ 09:29:53
  Author: arodseth
Revision: 100426

upgpkg: groovy 2.1.9-1

Modified:
  groovy/trunk/PKGBUILD

----------+
 PKGBUILD |   28 +++++++++++++++-------------
 1 file changed, 15 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-11-04 08:08:07 UTC (rev 100425)
+++ PKGBUILD	2013-11-04 08:29:53 UTC (rev 100426)
@@ -5,7 +5,7 @@
 # Contributor: Andreas W. Hauser <andy-aur at splashground.de>
 
 pkgname=groovy
-pkgver=2.1.7
+pkgver=2.1.9
 pkgrel=1
 pkgdesc='Programming language based on Java, inspired by Python, Ruby and Smalltalk'
 arch=('any')
@@ -13,12 +13,11 @@
 license=('APACHE' 'BSD' 'custom')
 depends=('bash' 'java-environment')
 optdepends=('groovy-docs: html and pdf documentation for Groovy')
-makedepends=('unzip')
 source=("http://dist.groovy.codehaus.org/distributions/$pkgname-binary-$pkgver.zip")
-sha256sums=('77fae631edd37388c9966188fbb479f4fb5276d8d67690ac71e476eb274b6819')
+sha256sums=('d9cb8d54680d508ac1eb928f8d0cfb1fb1bec7843bb405ea9a7d18f512b10ba6')
 
 prepare() {
-  cd "$srcdir/$pkgname-$pkgver/embeddable"
+  cd "$pkgname-$pkgver/embeddable"
 
   ln -s "$pkgname-all-$pkgver.jar" "$pkgname-all.jar"
   for f in ../bin/*; do
@@ -27,24 +26,27 @@
 }
 
 package() {
-  cd "$srcdir/$pkgname-$pkgver"
+  cd "$pkgname-$pkgver"
 
-  install -d "$pkgdir/usr/share/groovy"
-  install -d "$pkgdir/usr/bin"
-  cp -r lib "$pkgdir/usr/share/groovy"
-  cp -r conf "$pkgdir/usr/share/groovy"
-  cp -r embeddable "$pkgdir/usr/share/groovy"
+  # 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 {} \;
-  # APACHE
+
+  # Package the APACHE license
   install -Dm644 LICENSE.txt \
     "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
   install -Dm644 CLI-LICENSE.txt \
     "$pkgdir/usr/share/licenses/$pkgname/CLI-LICENSE"
-  # BSD
+
+  # Package the BSD license
   install -Dm644 ANTLR-LICENSE.txt \
     "$pkgdir/usr/share/licenses/$pkgname/ANTLR-LICENSE"
-  # custom
+
+  # Package the custom license
   install -Dm644 ASM-LICENSE.txt \
     "$pkgdir/usr/share/licenses/$pkgname/ASM-LICENSE"
   install -Dm644 JSR223-LICENSE.txt \




More information about the arch-commits mailing list