summaryrefslogtreecommitdiff
path: root/source/a/which
diff options
context:
space:
mode:
Diffstat (limited to 'source/a/which')
-rwxr-xr-xsource/a/which/which.SlackBuild7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/a/which/which.SlackBuild b/source/a/which/which.SlackBuild
index 08ae4616..dd755e41 100755
--- a/source/a/which/which.SlackBuild
+++ b/source/a/which/which.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/sh
-# Copyright 2008, 2009, 2010 Patrick J. Volkerding, Sebeka, MN, USA
+# Copyright 2008, 2009, 2010, 2015 Patrick J. Volkerding, Sebeka, MN, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -21,13 +21,14 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-VERSION=2.20
+PKGNAM=which
+VERSION=${VERSION:-$(echo $PKGNAM-*.tar.gz | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
BUILD=${BUILD:-1}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) export ARCH=i486 ;;
+ i?86) export ARCH=i586 ;;
arm*) export ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs:
*) export ARCH=$( uname -m ) ;;