diff options
author | Richard Ellis <rellis@dp100.com> | 2011-11-16 18:33:49 -0600 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2011-11-26 09:08:11 -0600 |
commit | d5930c9980b287eee90d2e9b6aeba7b433783c15 (patch) | |
tree | 7e0065b5a5b7d116ed42688dacd4a46664a9635f /development/ruff/ruff.SlackBuild | |
parent | 867bf212160736a0139cdc5be82d554ce0189b8e (diff) |
development/ruff: Added (Runtime function formatter)
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
Diffstat (limited to 'development/ruff/ruff.SlackBuild')
-rw-r--r-- | development/ruff/ruff.SlackBuild | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/development/ruff/ruff.SlackBuild b/development/ruff/ruff.SlackBuild new file mode 100644 index 000000000000..766c5e17451e --- /dev/null +++ b/development/ruff/ruff.SlackBuild @@ -0,0 +1,66 @@ +#!/bin/sh + +# Slackware build script for ruff + +# Written by Richard Ellis (rellis@dp100.com) + +# Released into the public domain +# V1 - Slackware 13.37 - November 12, 2011 + +PRGNAM=ruff +VERSION=${VERSION:-0.4} +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" = "i486" ]; then + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + LIBDIRSUFFIX="" +elif [ "$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 -o $CWD/$PRGNAM-$VERSION.zip -d $TMP +cd $PRGNAM +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-$VERSION +mv ruff.tcl pkgIndex.tcl $PKG/usr/lib$LIBDIRSUFFIX/$PRGNAM-$VERSION + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + ruff.html \ + $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} |