development/grails: Updated for version 2.3.3.

Signed-off-by: Erik Hanson <erik@slackbuilds.org>
This commit is contained in:
DhabyX 2013-12-05 01:39:36 -06:00 committed by Robby Workman
parent a616767925
commit 93101b5e6b
2 changed files with 13 additions and 16 deletions

View file

@ -2,7 +2,7 @@
# Slackware build script for grails # 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. # All rights reserved.
# #
# Redistribution and use in source and binary forms, with or without # Redistribution and use in source and binary forms, with or without
@ -24,7 +24,7 @@
# This script is just a binary repackaging. # This script is just a binary repackaging.
PRGNAM=grails PRGNAM=grails
VERSION=${VERSION:-1.2.0} VERSION=${VERSION:-2.3.3}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
@ -41,18 +41,15 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp} OUTPUT=${OUTPUT:-/tmp}
DOCS="INSTALL LICENSE README doc samples" DOCS="INSTALL LICENSE README doc"
if [ "$ARCH" = "i486" ]; then if [ "$ARCH" = "i486" ]; then
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "i686" ]; then
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "athlonxp" ]; then
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
LIBDIRSUFFIX="64" LIBDIRSUFFIX="64"
else else
SLKCFLAGS="-O2"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
fi fi
@ -66,14 +63,14 @@ unzip $CWD/$PRGNAM-$VERSION.zip
cd $PRGNAM-$VERSION cd $PRGNAM-$VERSION
chown -R root:root . chown -R root:root .
find -L . \ find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-exec chmod 755 {} \; -o \ -o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-exec chmod 644 {} \; -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# Putting everyting in place # Putting everyting in place
mkdir -p $PKG/usr/lib$LIBDIRSUFFIX/$PRGNAM 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 $PKG/usr/lib$LIBDIRSUFFIX/$PRGNAM
mkdir -p $PKG/etc/profile.d mkdir -p $PKG/etc/profile.d
cp $CWD/grails.{csh,sh}.new $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 $PKG/etc/profile.d/grails.{csh,sh}.new
chmod a+x $PKG/etc/profile.d/grails.* chmod a+x $PKG/etc/profile.d/grails.*
# Removing unnecessary files # Removing unnecessary .bat files
rm $PKG/usr/lib$LIBDIRSUFFIX/$PRGNAM/bin/*.bat find $PKG/usr/lib$LIBDIRSUFFIX/$PRGNAM/ -iname "*.bat" -exec rm {} \;
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -ar $DOCS $PKG/usr/doc/$PRGNAM-$VERSION cp -ar $DOCS $PKG/usr/doc/$PRGNAM-$VERSION

View file

@ -1,8 +1,8 @@
PRGNAM="grails" PRGNAM="grails"
VERSION="1.2.0" VERSION="2.3.3"
HOMEPAGE="http://www.grails.org/" HOMEPAGE="http://www.grails.org/"
DOWNLOAD="http://dist.codehaus.org/grails/grails-1.2.0.zip" DOWNLOAD="http://dist.springframework.org.s3.amazonaws.com/release/GRAILS/grails-2.3.3.zip"
MD5SUM="2eadcacff53bc327d162a449fe5ca2f7" MD5SUM="dad203982e96bd7eae13450021550605"
DOWNLOAD_x86_64="" DOWNLOAD_x86_64=""
MD5SUM_x86_64="" MD5SUM_x86_64=""
REQUIRES="jdk" REQUIRES="jdk"