summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Ruben Schuller <sb@rbn.im>2020-12-06 07:52:35 +0700
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2020-12-06 07:52:35 +0700
commitf3ee13c19336bd949e2ec83a3e9333011d144843 (patch)
treeb25e2456f8bfdb6bc81bc2c438e69ff3ed17e136
parent8146c4a1ff57855a9c459f255e4eda67ee6b64d2 (diff)
downloadslackbuilds-f3ee13c19336bd949e2ec83a3e9333011d144843.tar.gz
slackbuilds-f3ee13c19336bd949e2ec83a3e9333011d144843.tar.xz
development/ruff: Updated for version 1.0.4.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--development/ruff/ruff.SlackBuild66
-rw-r--r--development/ruff/ruff.info12
2 files changed, 61 insertions, 17 deletions
diff --git a/development/ruff/ruff.SlackBuild b/development/ruff/ruff.SlackBuild
index 15e76edfc6..175a300a96 100644
--- a/development/ruff/ruff.SlackBuild
+++ b/development/ruff/ruff.SlackBuild
@@ -2,19 +2,41 @@
# Slackware build script for ruff
+# Copyright 2020 Ruben Schuller
+# All rights reserved.
+
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+# Previous maintainers copyright notice:
# 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}
+VERSION=${VERSION:-1.0.4}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -25,13 +47,17 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
else
+ SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
fi
@@ -41,22 +67,40 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-unzip -o $CWD/$PRGNAM-$VERSION.zip -d $TMP
-cd $PRGNAM
+
+tar xvf $CWD/$PRGNAM-$VERSION.tgz
+
+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 {} \;
-mkdir -p $PKG/usr/lib$LIBDIRSUFFIX/$PRGNAM-$VERSION
-mv ruff.tcl pkgIndex.tcl $PKG/usr/lib$LIBDIRSUFFIX/$PRGNAM-$VERSION
+mkdir -p $PKG/usr/lib$LIBDIRSUFFIX/$PRGNAM
+cp -a \
+ formatter.tcl \
+ formatter_html.tcl \
+ formatter_markdown.tcl \
+ pkgIndex.tcl \
+ ruff-html.css \
+ ruff-html.js \
+ ruff-md.css \
+ ruff-yui.css \
+ ruff.tcl \
+ $PKG/usr/lib$LIBDIRSUFFIX/$PRGNAM
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
+ LICENSE \
ruff.html \
+ ruff_ruff.html \
+ ruff_ruff_sample.html \
+ sample.tcl \
+ release.md \
$PKG/usr/doc/$PRGNAM-$VERSION
+
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/development/ruff/ruff.info b/development/ruff/ruff.info
index 918373a898..ea888edfa1 100644
--- a/development/ruff/ruff.info
+++ b/development/ruff/ruff.info
@@ -1,10 +1,10 @@
PRGNAM="ruff"
-VERSION="0.4"
-HOMEPAGE="http://woof.sourceforge.net/"
-DOWNLOAD="http://downloads.sourceforge.net/woof/ruff-0.4.zip"
-MD5SUM="8de7ca0f7642b923a0d1b5a11482d339"
+VERSION="1.0.4"
+HOMEPAGE="https://ruff.magicsplat.com"
+DOWNLOAD="https://sourceforge.net/projects/magicsplat/files/ruff/ruff-1.0.4.tgz"
+MD5SUM="b8ea073994095fee1bd9d63cfb07f092"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
-MAINTAINER="Richard Ellis"
-EMAIL="rellis@dp100.com"
+MAINTAINER="Ruben Schuller"
+EMAIL="sb@rbn.im"