Date: Monday, January 2, 2023 @ 23:30:01 Author: arodseth Revision: 1374093
upgpkg: groovy 4.0.7-1 Modified: groovy/trunk/PKGBUILD ----------+ PKGBUILD | 63 +++++++++++++++++++++++++++++-------------------------------- 1 file changed, 30 insertions(+), 33 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2023-01-02 23:19:20 UTC (rev 1374092) +++ PKGBUILD 2023-01-02 23:30:01 UTC (rev 1374093) @@ -5,49 +5,46 @@ # Contributor: Andreas W. Hauser <[email protected]> pkgname=groovy -pkgver=4.0.6 +pkgver=4.0.7 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') +pkgdesc='Programming language for the Java platform, inspired by Python, Ruby and Smalltalk' +arch=(any) +url='https://groovy-lang.org/' +license=(Apache) +makedepends=(gendesk) +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://groovy.jfrog.io/ui/api/v1/download?repoKey=dist-release-local&path=groovy-zips%252Fapache-groovy-binary-$pkgver.zip") -sha256sums=('e3b541567e65787279f02031206589bcdf3cdaab9328d9e4d72ad23a86aa1053') +source=("https://groovy.jfrog.io/artifactory/dist-release-local/groovy-zips/apache-groovy-binary-$pkgver.zip") +b2sums=('affccb59b2b96d11e959faac823d8dc3e5a38f50ac3d22f31de7310673333e72debb75fb9295b52f6408ecff3586919ec3d071cffdf810681961a0ee47697651') prepare() { - # Generate desktop shortcut - gendesk -f -n \ - --pkgname "$pkgname" \ - --pkgdesc 'Groovy programming language' \ - --exec 'groovyConsole' \ - --name 'Groovy Console' + gendesk -f -n \ + --pkgname $pkgname \ + --pkgdesc 'Groovy programming language' \ + --exec groovyConsole \ + --name 'Groovy Console' - # Patch the scripts - for f in "$pkgname-$pkgver/bin/"*; do - sed 's:bin/env\ sh:bin/env\ sh\nGROOVY_HOME=/usr/share/groovy\nexport _JAVA_OPTIONS="-Dawt.useSystemAAFontSettings=gasp $_JAVA_OPTIONS":' -i "$f" - done + for f in $pkgname-$pkgver/bin/*; do + sed 's:bin/env\ sh:bin/env\ sh\nGROOVY_HOME=/usr/share/groovy\nexport _JAVA_OPTIONS="-Dawt.useSystemAAFontSettings=gasp $_JAVA_OPTIONS":' -i "$f" + done } package() { - cd "$pkgname-$pkgver" + cd $pkgname-$pkgver - # Create the directories and package the files - install -d "$pkgdir/usr/share/groovy" "$pkgdir/usr/bin" - cp -r lib conf "$pkgdir/usr/share/groovy" - cp bin/* "$pkgdir/usr/bin" - rm "$pkgdir"/usr/bin/*completion - install -Dm644 bin/*completion -t "$pkgdir"/usr/share/bash-completion/completions + # Create the directories and package the files + install -d "$pkgdir/usr/share/groovy" "$pkgdir/usr/bin" + cp -r lib conf "$pkgdir/usr/share/groovy" + cp bin/* "$pkgdir/usr/bin" + rm "$pkgdir"/usr/bin/*completion + install -Dm644 bin/*completion -t "$pkgdir"/usr/share/bash-completion/completions - # Remove all DOS/Windows batch files - find "$pkgdir" -name '*.bat' -exec rm {} \; + # Remove all DOS/Windows batch files + find "$pkgdir" -name '*.bat' -exec rm {} \; - # Package the license file - install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname + # Package the license file + install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname - # Package the desktop shortcut for Groovy Console - install -Dm644 "$srcdir/$pkgname.desktop" -t "$pkgdir"/usr/share/applications + # Package the desktop shortcut for Groovy Console + install -Dm644 "$srcdir/$pkgname.desktop" -t "$pkgdir"/usr/share/applications }
