aboutsummaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorslakmagik <jsun@freeshell.org>2010-05-24 00:16:13 -0500
committerRobby Workman <rworkman@slackbuilds.org>2010-05-24 16:10:22 -0500
commit77f8ee4bd4d5add19fe1149254d0a69d49ed71a6 (patch)
treef942439aab7263007271b719abfe0926727deb56 /misc
parenta19f3f21069f64fd4231572b96b8fb2ebe65e29a (diff)
misc/rlwrap: Updated for version 0.37.
Diffstat (limited to 'misc')
-rw-r--r--misc/rlwrap/README5
-rw-r--r--misc/rlwrap/rlwrap.SlackBuild16
-rw-r--r--misc/rlwrap/rlwrap.info6
3 files changed, 20 insertions, 7 deletions
diff --git a/misc/rlwrap/README b/misc/rlwrap/README
index 13fca8828e874..c9343b13478b8 100644
--- a/misc/rlwrap/README
+++ b/misc/rlwrap/README
@@ -4,5 +4,6 @@ history is remembered across invocations, separately for each command;
history completion and search work as in bash and completion word
lists can be specified on the command line.
-You will need to create the ~/.rlwrap directory (or wherever RLWRAP_HOME is
-set to) or rlwrap will complain and exit.
+If you wish to have history and completion files kept somewhere other
+than $HOME, you will need to set RLWRAP_HOME to the desired path and
+rlwrap will create it so long as all its parent directories exist.
diff --git a/misc/rlwrap/rlwrap.SlackBuild b/misc/rlwrap/rlwrap.SlackBuild
index 201ef8a841f5f..b3543cb519c95 100644
--- a/misc/rlwrap/rlwrap.SlackBuild
+++ b/misc/rlwrap/rlwrap.SlackBuild
@@ -5,11 +5,20 @@
# Released under the WTFPL
PRGNAM=rlwrap
-VERSION=${VERSION:-0.32}
-ARCH=${ARCH:-i486}
+VERSION=${VERSION:-0.37}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+# Automatically determine the architecture we're building on:
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) export ARCH=i486 ;;
+ arm*) export ARCH=arm ;;
+ # Unless $ARCH is already set, use uname -m for all other archs:
+ *) export ARCH=$( uname -m ) ;;
+ esac
+fi
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -24,6 +33,9 @@ elif [ "$ARCH" = "i686" ]; then
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
fi
set -e
diff --git a/misc/rlwrap/rlwrap.info b/misc/rlwrap/rlwrap.info
index ced80b2fb23aa..e04296e24ad11 100644
--- a/misc/rlwrap/rlwrap.info
+++ b/misc/rlwrap/rlwrap.info
@@ -1,8 +1,8 @@
PRGNAM="rlwrap"
-VERSION="0.32"
+VERSION="0.37"
HOMEPAGE="http://utopia.knoware.nl/~hlub/uck/rlwrap/"
-DOWNLOAD="http://utopia.knoware.nl/~hlub/uck/rlwrap/rlwrap-0.32.tar.gz"
-MD5SUM="441282a9a65c1d516c1c9a6821184539"
+DOWNLOAD="http://utopia.knoware.nl/~hlub/uck/rlwrap/rlwrap-0.37.tar.gz"
+MD5SUM="04cd6e2c257eb5a86b297f2ebf91dbbf"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="slakmagik"