Date: Thursday, November 21, 2013 @ 22:24:04 Author: arodseth Revision: 101291
archrelease: copy trunk to community-any Added: groovy/repos/community-any/PKGBUILD (from rev 101290, groovy/trunk/PKGBUILD) Deleted: groovy/repos/community-any/PKGBUILD ----------+ PKGBUILD | 126 +++++++++++++++++++++++++++++++++---------------------------- 1 file changed, 70 insertions(+), 56 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2013-11-21 21:22:14 UTC (rev 101290) +++ PKGBUILD 2013-11-21 21:24:04 UTC (rev 101291) @@ -1,56 +0,0 @@ -# $Id$ -# Maintainer: Alexander Rødseth <rods...@gmail.com> -# Contributor: Musikolo <musikoloAThotmailDOTcom> -# Contributor: Ruben Fonseca <fons...@gmail.com> -# Contributor: Andreas W. Hauser <andy-...@splashground.de> - -pkgname=groovy -pkgver=2.2.0 -pkgrel=1 -pkgdesc='Programming language based on Java, inspired by Python, Ruby and Smalltalk' -arch=('any') -url='http://groovy.codehaus.org/' -license=('APACHE' 'BSD' 'custom') -depends=('bash' 'java-environment') -optdepends=('groovy-docs: html and pdf documentation for Groovy') -source=("http://dist.groovy.codehaus.org/distributions/$pkgname-binary-$pkgver.zip") -sha256sums=('4da493b3d2de347a3e6fb903fa86eb76a9f7168960967736907c65a4f92a4fd0') - -prepare() { - cd "$pkgname-$pkgver/embeddable" - - ln -s "$pkgname-all-$pkgver.jar" "$pkgname-all.jar" - for f in ../bin/*; do - sed 's:bin/sh:bin/sh\nGROOVY_HOME=/usr/share/groovy:' -i $f - done -} - -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 APACHE license - install -Dm644 LICENSE.txt \ - "$pkgdir/usr/share/licenses/$pkgname/LICENSE" - install -Dm644 CLI-LICENSE.txt \ - "$pkgdir/usr/share/licenses/$pkgname/CLI-LICENSE" - - # Package the BSD license - install -Dm644 ANTLR-LICENSE.txt \ - "$pkgdir/usr/share/licenses/$pkgname/ANTLR-LICENSE" - - # Package the custom license - install -Dm644 ASM-LICENSE.txt \ - "$pkgdir/usr/share/licenses/$pkgname/ASM-LICENSE" - install -Dm644 JSR223-LICENSE.txt \ - "$pkgdir/usr/share/licenses/$pkgname/JSR223-LICENSE" -} - -# vim:set ts=2 sw=2 et: Copied: groovy/repos/community-any/PKGBUILD (from rev 101290, groovy/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2013-11-21 21:24:04 UTC (rev 101291) @@ -0,0 +1,70 @@ +# $Id$ +# Maintainer: Alexander Rødseth <rods...@gmail.com> +# Contributor: Musikolo <musikoloAThotmailDOTcom> +# Contributor: Ruben Fonseca <fons...@gmail.com> +# Contributor: Andreas W. Hauser <andy-...@splashground.de> + +pkgname=groovy +pkgver=2.2.0 +pkgrel=2 +pkgdesc='Programming language based on Java, inspired by Python, Ruby and Smalltalk' +arch=('any') +url='http://groovy.codehaus.org/' +license=('APACHE' 'BSD' 'custom') +depends=('bash' 'java-environment') +optdepends=('groovy-docs: html and pdf documentation for Groovy') +makedepends=('gendesk') +source=("http://dist.groovy.codehaus.org/distributions/$pkgname-binary-$pkgver.zip" + "$pkgname.png::http://svn.codehaus.org/groovy/tags/GROOVY_1_7_6/src/main/groovy/ui/ConsoleIcon.png") +sha256sums=('4da493b3d2de347a3e6fb903fa86eb76a9f7168960967736907c65a4f92a4fd0' + '24e539235b5762b1220f39d7953a52e9b4a458c2be4f66a60219755363ba6dba') + +prepare() { + # Generate desktop shortcut file + 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 + cd "$pkgname-$pkgver/embeddable" + for f in ../bin/*; do + sed 's:bin/sh:bin/sh\nGROOVY_HOME=/usr/share/groovy:' -i $f + done + + 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 APACHE license + install -Dm644 LICENSE.txt \ + "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + install -Dm644 CLI-LICENSE.txt \ + "$pkgdir/usr/share/licenses/$pkgname/CLI-LICENSE" + + # Package the BSD license + install -Dm644 ANTLR-LICENSE.txt \ + "$pkgdir/usr/share/licenses/$pkgname/ANTLR-LICENSE" + + # Package the custom license + install -Dm644 ASM-LICENSE.txt \ + "$pkgdir/usr/share/licenses/$pkgname/ASM-LICENSE" + install -Dm644 JSR223-LICENSE.txt \ + "$pkgdir/usr/share/licenses/$pkgname/JSR223-LICENSE" + + # 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" +} + +# vim:set ts=2 sw=2 et: