diff options
author | Jockey S. Kyd <jockey.kyd@gmail.com> | 2011-10-31 18:11:38 -0500 |
---|---|---|
committer | Niels Horn <niels.horn@slackbuilds.org> | 2011-11-04 22:02:25 -0200 |
commit | c6c1945a5ea18be6c9d3239933976a807d44bead (patch) | |
tree | 268e62e69cee2321467e54b62b5f4c1d06ca6a76 /development/groovy/groovy.SlackBuild | |
parent | ea1a2a6417f802fc41d5be54b19c62182a659f03 (diff) | |
download | slackbuilds-c6c1945a5ea18be6c9d3239933976a807d44bead.tar.gz |
development/groovy: Added (The Groovy programming language)
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
Diffstat (limited to 'development/groovy/groovy.SlackBuild')
-rw-r--r-- | development/groovy/groovy.SlackBuild | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/development/groovy/groovy.SlackBuild b/development/groovy/groovy.SlackBuild new file mode 100644 index 0000000000..17cc277cdc --- /dev/null +++ b/development/groovy/groovy.SlackBuild @@ -0,0 +1,64 @@ +#!/bin/sh +# +# Written by Jockey S. Kyd (jockey dot kyd at gmail dot com) +# Public domain +# + +PRGNAM=groovy +VERSION=1.8.2 +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$(uname -m)" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$(uname -m) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "x86_64" ]; then + LIBDIRSUFFIX="64" +else + LIBDIRSUFFIX="" +fi + +set -e +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +unzip $CWD/$PRGNAM-binary-$VERSION.zip +cd $PRGNAM-$VERSION +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -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 {} \; + +mkdir -p $PKG/usr/lib$LIBDIRSUFFIX/$PRGNAM +mv * $PKG/usr/lib$LIBDIRSUFFIX/$PRGNAM +cd .. +rmdir $PRGNAM-$VERSION + +# no need to install these with a .new extension +mkdir -p $PKG/etc/profile.d +cp -a $CWD/profile.d/$PRGNAM.*sh $PKG/etc/profile.d +sed -i "s|@LIBDIR@|/usr/lib$LIBDIRSUFFIX|" $PKG/etc/profile.d/$PRGNAM.*sh +chmod 0755 $PKG/etc/profile.d/$PRGNAM.*sh +chown root:root $PKG/etc/profile.d/$PRGNAM.*sh + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |