summaryrefslogtreecommitdiffstats
path: root/development/trf
diff options
context:
space:
mode:
Diffstat (limited to 'development/trf')
-rw-r--r--development/trf/README11
-rw-r--r--development/trf/trf.SlackBuild22
2 files changed, 22 insertions, 11 deletions
diff --git a/development/trf/README b/development/trf/README
index 54fa677139..25ece10156 100644
--- a/development/trf/README
+++ b/development/trf/README
@@ -1,5 +1,6 @@
-Trf extends the TCL language at the C-level with so-called ``transformer''
-procedures. With the help of some patches to the core the package is able
-to intercept all read/write operations on designated channels, thus giving
-it the ability to transform the buffer contents as desired. This allows
-things like transparent encryption, compression, charset recoding, etc.
+Trf extends the TCL language at the C-level with so-called 'transformer'
+procedures. With the help of some patches to the core the package is
+able to intercept all read/write operations on designated channels,
+thus giving it the ability to transform the buffer contents as
+desired. This allows things like transparent encryption, compression,
+charset recoding, etc.
diff --git a/development/trf/trf.SlackBuild b/development/trf/trf.SlackBuild
index a009c8d5d3..9a9af5168b 100644
--- a/development/trf/trf.SlackBuild
+++ b/development/trf/trf.SlackBuild
@@ -1,29 +1,39 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for trf
# Written by Zbigniew Baniewski, <Zbigniew [dot] Baniewski [at] gmail [dot] com>
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=trf
VERSION=${VERSION:-2.1p2}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
-CWD=$(pwd)
+# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
+# the name of the created package would be, and then exit. This information
+# could be useful to other scripts.
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -80,4 +90,4 @@ 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}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE