summaryrefslogtreecommitdiff
path: root/development/grails/grails.SlackBuild
diff options
context:
space:
mode:
authorDhabyX <slack.dhabyx@gmail.com>2017-04-06 08:56:05 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-04-06 21:03:12 +0700
commitdf231b38ab480df25205cde096eacff631a0bd59 (patch)
tree6cd57bc7f893d75fc497fa2b00fc619ebe5bff83 /development/grails/grails.SlackBuild
parentdc5937f46e08d795d0abcbf559b5c9a9253e175c (diff)
downloadslackbuilds-df231b38ab480df25205cde096eacff631a0bd59.tar.gz
development/grails: Updated for version 3.2.8.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/grails/grails.SlackBuild')
-rw-r--r--development/grails/grails.SlackBuild24
1 files changed, 15 insertions, 9 deletions
diff --git a/development/grails/grails.SlackBuild b/development/grails/grails.SlackBuild
index 5f20850fce..d46566a6f2 100644
--- a/development/grails/grails.SlackBuild
+++ b/development/grails/grails.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for grails
-# Copyright (c) 2010-2013, Dhaby Xiloj <slack.dhabyx@gmail.com>
+# Copyright (c) 2010-2017, Dhaby Xiloj <slack.dhabyx@gmail.com>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -24,7 +24,7 @@
# This script is just a binary repackaging.
PRGNAM=grails
-VERSION=${VERSION:-2.3.3}
+VERSION=${VERSION:-3.2.8}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -41,9 +41,9 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-DOCS="INSTALL LICENSE README doc"
+DOCS="INSTALL LICENSE"
-if [ "$ARCH" = "i486" ]; then
+if [ "$ARCH" = "i586" ]; then
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
LIBDIRSUFFIX=""
@@ -53,7 +53,7 @@ else
LIBDIRSUFFIX=""
fi
-set -e
+set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
@@ -70,8 +70,14 @@ find -L . \
# Putting everyting in place
mkdir -p $PKG/usr/lib$LIBDIRSUFFIX/$PRGNAM
-cp -R {bin,conf,dist,dsl-support,lib,media,plugins,scripts,src,build.properties} \
+cp -R {bin,dist,lib,media,src} \
$PKG/usr/lib$LIBDIRSUFFIX/$PRGNAM
+mkdir -p $PKG/usr/bin/
+ln -sf /usr/lib$LIBDIRSUFFIX/$PRGNAM/bin/$PRGNAM $PKG/usr/bin/$PRGNAM
+
+mkdir -p $PKG/usr/share/pixmaps
+cp media/icons/*.png $PKG/usr/share/pixmaps
+
mkdir -p $PKG/etc/profile.d
cp $CWD/grails.{csh,sh}.new $PKG/etc/profile.d/
sed -i "s|GRAILS_INSTALL_PATH|/usr/lib$LIBDIRSUFFIX/$PRGNAM|" \
@@ -79,9 +85,10 @@ sed -i "s|GRAILS_INSTALL_PATH|/usr/lib$LIBDIRSUFFIX/$PRGNAM|" \
chmod a+x $PKG/etc/profile.d/grails.*
# Removing unnecessary .bat files
-find $PKG/usr/lib$LIBDIRSUFFIX/$PRGNAM/ -iname "*.bat" -exec rm {} \;
+rm -f $PKG/usr/lib$LIBDIRSUFFIX/$PRGNAM/bin/$PRGNAM.bat
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM
+unzip $CWD/$PRGNAM-docs-$VERSION.zip -d $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM
cp -ar $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
@@ -91,4 +98,3 @@ cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
-