summaryrefslogtreecommitdiff
path: root/system/graveman
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2017-03-21 13:25:14 -0400
committerDavid Spencer <idlemoor@slackbuilds.org>2017-03-25 13:28:55 +0000
commit19e1a3ec8d5eb53eb3b79b5028fbce42472b2c58 (patch)
treefdf8c1b51036c05ed7db215da73a2fe5d90f7730 /system/graveman
parent02ee40dcf756caecd36d897063f4498d2e0ed528 (diff)
downloadslackbuilds-19e1a3ec8d5eb53eb3b79b5028fbce42472b2c58.tar.gz
system/graveman: Allow VERSION override, i486=>i586.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'system/graveman')
-rw-r--r--system/graveman/graveman.SlackBuild11
1 files changed, 6 insertions, 5 deletions
diff --git a/system/graveman/graveman.SlackBuild b/system/graveman/graveman.SlackBuild
index f28f3dd52b..fd184cc5a9 100644
--- a/system/graveman/graveman.SlackBuild
+++ b/system/graveman/graveman.SlackBuild
@@ -26,17 +26,18 @@
# Added patch to support newer Sox versions.
PRGNAM=graveman
-VERSION=0.3.12.5
+VERSION=${VERSION:-0.3.12.5}
BUILD=${BUILD:-6}
TAG=${TAG:-_SBo}
-SRCVER=0.3.12-5 # this is the developer's source version
+# this is the developer's source version
+SRCVER=$( echo $VERSION | cut -d. -f1-3 )-$( echo $VERSION | cut -d. -f4 )
DOCS="AUTHORS COPYING ChangeLog NEWS README* THANKS TRANSLATE-HOWTO.fr"
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -47,8 +48,8 @@ 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"