summaryrefslogtreecommitdiffstats
path: root/development/kforth/kforth.SlackBuild
diff options
context:
space:
mode:
author B. Watson <yalhcru@gmail.com>2020-01-03 04:35:40 -0500
committer Robby Workman <rworkman@slackbuilds.org>2020-01-03 04:44:15 -0600
commit2f0961f295bb2445e152831631d97f75ebffa19b (patch)
tree09c8ae004c06c290bf460ae2fe6caf7928f3ed90 /development/kforth/kforth.SlackBuild
parent41b3e0e7d7b67f44164a30c62d564d2f769638ad (diff)
downloadslackbuilds-2f0961f295bb2445e152831631d97f75ebffa19b.tar.gz
slackbuilds-2f0961f295bb2445e152831631d97f75ebffa19b.tar.xz
development/kforth: Fix VERSION in script.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'development/kforth/kforth.SlackBuild')
-rw-r--r--development/kforth/kforth.SlackBuild10
1 files changed, 5 insertions, 5 deletions
diff --git a/development/kforth/kforth.SlackBuild b/development/kforth/kforth.SlackBuild
index 28c512d4ac..c33bff9e37 100644
--- a/development/kforth/kforth.SlackBuild
+++ b/development/kforth/kforth.SlackBuild
@@ -5,7 +5,8 @@
# Written by G. Schoenmakers <gschoen@iinet.net.au>
PRGNAM=kforth
-VERSION=${VERSION:-1.5.2}
+VERSION=${VERSION:-1.5.2p1}
+SRCVER="$( echo $VERSION | cut -dp -f1 )"
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -29,9 +30,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$MODEL-$VERSION.tar.gz
-cd $PRGNAM-$VERSION
+rm -rf $PRGNAM-$SRCVER
+tar xvf $CWD/$PRGNAM-$MODEL-$SRCVER.tar.gz
+cd $PRGNAM-$SRCVER
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@@ -41,7 +42,6 @@ find -L . \
patch ForthVM.cpp $CWD/ForthVM.diff
patch Makefile $CWD/Makefile.diff
-VERSION=${VERSION}p1
make