aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Leal <antonio.leal@yahoo.com>2023-03-26 23:13:22 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-04-01 09:14:07 +0700
commita08df130c82e4a0bd6dd755503a6a42d00cbb44a (patch)
tree0749c81e4955cca59c735c3a35c99dde2f394e6d
parent16eb209174b4138bb93a026815cec90c439e6b80 (diff)
development/kForth-32: Fix /etc/profile.d/ file.
Signed-off-by: bedlam <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--development/kForth-32/README6
-rw-r--r--development/kForth-32/kForth-32.SlackBuild8
-rw-r--r--development/kForth-32/kForth-32.sh2
3 files changed, 7 insertions, 9 deletions
diff --git a/development/kForth-32/README b/development/kForth-32/README
index 1025501bc2ac..fef58a92e030 100644
--- a/development/kForth-32/README
+++ b/development/kForth-32/README
@@ -1,11 +1,7 @@
kForth is an implementation of the Forth programming language
and environment. The user may write Forth programs with an editor,
load these program files from kForth, and run them.
-kForth, like other implementations of Forth, provides an interactive
-environment, allowing the user to examine or define variables and
-define and execute individual words. Interactive use is one of the
-main advantages in using a Forth environment for writing and testing
-computer programs.
+
kForth provides a large subset of the Forth-2012 specification for
the Forth language. It also provides some extensions and non-standard
features which its authors have found to be useful.
diff --git a/development/kForth-32/kForth-32.SlackBuild b/development/kForth-32/kForth-32.SlackBuild
index 8f1f2248267a..317f2ad59a57 100644
--- a/development/kForth-32/kForth-32.SlackBuild
+++ b/development/kForth-32/kForth-32.SlackBuild
@@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=kForth-32
VERSION=${VERSION:-2.3.0}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -95,7 +95,11 @@ cp *.* $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/etc/profile.d
-cp $CWD/kForth-32.sh $PKG/etc/profile.d
+cat <<EOF >$PKG/etc/profile.d/kForth-32.sh
+!/bin/sh
+export KFORTH_DIR=/usr/share/kForth-32
+EOF
+chmod 0755 $PKG/etc/profile.d/kForth-32.sh
mkdir -p $PKG/usr/share/pixmaps
cp $TMP/$PRGNAM-$VERSION/kforth.xpm $PKG/usr/share/pixmaps
diff --git a/development/kForth-32/kForth-32.sh b/development/kForth-32/kForth-32.sh
deleted file mode 100644
index 30ccb0b5900f..000000000000
--- a/development/kForth-32/kForth-32.sh
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-export KFORTH_DIR=/usr/share/kForth-32