[arch-commits] Commit in grails/trunk (PKGBUILD)
Levente Polyak
anthraxx at archlinux.org
Sun Sep 27 16:45:58 UTC 2015
Date: Sunday, September 27, 2015 @ 18:45:58
Author: anthraxx
Revision: 141707
upgpkg: grails 3.0.8-1
upgpkg: grails 3.0.8-1
Modified:
grails/trunk/PKGBUILD
----------+
PKGBUILD | 57 +++++++++++++++++++++++++++++----------------------------
1 file changed, 29 insertions(+), 28 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-09-27 16:36:42 UTC (rev 141706)
+++ PKGBUILD 2015-09-27 16:45:58 UTC (rev 141707)
@@ -1,29 +1,31 @@
-# $Id$
-# Maintainer: Alexander Rødseth <rodseth at gmail.com>
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Alexander Rødseth <rodseth at gmail.com>
pkgbase=grails
pkgname=('grails' 'grails-docs')
-pkgver=3.0.7
+pkgver=3.0.8
pkgrel=1
pkgdesc='Groovy on rails, web framework'
+url='http://grails.org/'
arch=('any')
-url='http://grails.org/'
-license=('APACHE')
-makedepends=('apache-ant' 'unzip' 'setconf')
-optdepends=('groovy: the groovy programming language'
- 'grails-docs: documentation for grails')
+license=('Apache')
+makedepends=('apache-ant' 'unzip' 'setconf' 'junit' 'java-environment')
+optdepends=(
+ 'groovy: the groovy programming language'
+ 'grails-docs: documentation for grails'
+)
options=('!emptydirs')
-noextract=("${pkgname[1]}-$pkgver.zip")
-source=("https://github.com/grails/grails-core/releases/download/v$pkgver/grails-$pkgver.zip"
- "https://github.com/grails/grails-doc/releases/download/v$pkgver/grails-docs-$pkgver.zip")
-sha256sums=('d99b11e4a8fb1f5a155f1784f482316df96e63d094d5d083a62bc37905380800'
- '328b0179e43fbf2723cf9f7b2d2208289d5c1a39d0eeee7ab0c55b85febce2b8')
+noextract=("${pkgname[1]}-${pkgver}.zip")
+source=(${pkgname[0]}-${pkgver}.zip::https://github.com/grails/grails-core/releases/download/v${pkgver}/grails-${pkgver}.zip
+ ${pkgname[1]}-${pkgver}.zip::https://github.com/grails/grails-doc/releases/download/v${pkgver}/grails-docs-${pkgver}.zip)
+sha512sums=('7837d3c09b5c8e99f2ff220072319815d890c2e27832fb277a7de2c9588ea4be12f97e5f1fcfd1c3c7e3f22009b3cad33e5ebccff37829fe420d405138cf8ec0'
+ 'db2325b40f147b369de8833b12c5e249ecc0a567ef20f326f2933df28775fb9643d1734384d41e6f2c16bb83981df6733ef975db7f30139a68a92413628bc9e6')
prepare() {
- cd "${pkgname[0]}-$pkgver"
+ cd ${pkgbase}-${pkgver}
# profile.d script
- echo 'export GRAILS_HOME=/usr/share/grails' > "$srcdir/$pkgbase.profile"
+ echo 'export GRAILS_HOME=/usr/share/grails' > "${srcdir}/${pkgbase}.profile"
# set APP_HOME
setconf bin/grails APP_HOME /usr/share/grails
@@ -32,27 +34,26 @@
package_grails() {
depends=('java-environment' 'junit' 'bash')
- cd "$pkgname-$pkgver"
+ cd ${pkgname}-${pkgver}
- install -d "$pkgdir/usr/share/pixmaps/"
- cp -r "$srcdir/$pkgname-$pkgver" "$pkgdir/usr/share/$pkgname"
- install -Dm755 bin/grails "$pkgdir/usr/bin/grails"
- cp media/icons/*.png "$pkgdir/usr/share/pixmaps/"
- install -Dm755 "$srcdir/$pkgbase.profile" "$pkgdir/etc/profile.d/$pkgname.sh"
+ install -d "${pkgdir}/usr/share/pixmaps"
+ cp -r . "${pkgdir}/usr/share/${pkgname}"
+ install -Dm 755 bin/grails "${pkgdir}/usr/bin/grails"
+ cp media/icons/*.png "${pkgdir}/usr/share/pixmaps/"
+ install -Dm 755 "${srcdir}/${pkgbase}.profile" "${pkgdir}/etc/profile.d/${pkgname}.sh"
# clean up
- cd "$pkgdir/usr/share/$pkgname"
+ cd "${pkgdir}/usr/share/${pkgname}"
rm -rf doc INSTALL LICENSE README
- find "$pkgdir/usr/share" -name "*.bat" -exec rm {} \;
+ find "${pkgdir}/usr/share" -name "*.bat" -exec rm {} \;
}
package_grails-docs() {
pkgdesc='Documentation for Grails'
- install -d "$pkgdir/usr/share/doc" "$pkgdir/usr/share/grails"
- unzip "grails-docs-$pkgver.zip" -d "$pkgdir/usr/share/doc/grails-$pkgver"
- ln -s "/usr/share/doc/grails-$pkgver" "$pkgdir/usr/share/grails/doc"
+ install -d "${pkgdir}/usr/share/doc" "${pkgdir}/usr/share/grails"
+ unzip "grails-docs-${pkgver}.zip" -d "${pkgdir}/usr/share/doc/grails-${pkgver}"
+ ln -s "/usr/share/doc/grails-${pkgver}" "${pkgdir}/usr/share/grails/doc"
}
-# getver: https://grails.org/download.html
-# vim:set ts=2 sw=2 et:
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list