aboutsummaryrefslogtreecommitdiff
path: root/development/grails/grails.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/grails/grails.SlackBuild')
-rw-r--r--development/grails/grails.SlackBuild23
1 files changed, 10 insertions, 13 deletions
diff --git a/development/grails/grails.SlackBuild b/development/grails/grails.SlackBuild
index 45733f34f3338..5f20850fce858 100644
--- a/development/grails/grails.SlackBuild
+++ b/development/grails/grails.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for grails
-# Copyright (c) 2010, Dhaby Xiloj <slack.dhabyx@gmail.com>
+# Copyright (c) 2010-2013, 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:-1.2.0}
+VERSION=${VERSION:-2.3.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -41,18 +41,15 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-DOCS="INSTALL LICENSE README doc samples"
+DOCS="INSTALL LICENSE README doc"
if [ "$ARCH" = "i486" ]; then
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
LIBDIRSUFFIX=""
-elif [ "$ARCH" = "athlonxp" ]; then
- LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
LIBDIRSUFFIX="64"
else
- SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
fi
@@ -66,14 +63,14 @@ unzip $CWD/$PRGNAM-$VERSION.zip
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# Putting everyting in place
mkdir -p $PKG/usr/lib$LIBDIRSUFFIX/$PRGNAM
-cp -R {ant,bin,conf,cruise,dist,lib,media,plugins,scripts,src,build.properties,build.xml} \
+cp -R {bin,conf,dist,dsl-support,lib,media,plugins,scripts,src,build.properties} \
$PKG/usr/lib$LIBDIRSUFFIX/$PRGNAM
mkdir -p $PKG/etc/profile.d
cp $CWD/grails.{csh,sh}.new $PKG/etc/profile.d/
@@ -81,8 +78,8 @@ sed -i "s|GRAILS_INSTALL_PATH|/usr/lib$LIBDIRSUFFIX/$PRGNAM|" \
$PKG/etc/profile.d/grails.{csh,sh}.new
chmod a+x $PKG/etc/profile.d/grails.*
-# Removing unnecessary files
-rm $PKG/usr/lib$LIBDIRSUFFIX/$PRGNAM/bin/*.bat
+# Removing unnecessary .bat files
+find $PKG/usr/lib$LIBDIRSUFFIX/$PRGNAM/ -iname "*.bat" -exec rm {} \;
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -ar $DOCS $PKG/usr/doc/$PRGNAM-$VERSION