aboutsummaryrefslogtreecommitdiff
path: root/development/FreeBASIC/FreeBASIC.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/FreeBASIC/FreeBASIC.SlackBuild')
-rw-r--r--development/FreeBASIC/FreeBASIC.SlackBuild3
1 files changed, 2 insertions, 1 deletions
diff --git a/development/FreeBASIC/FreeBASIC.SlackBuild b/development/FreeBASIC/FreeBASIC.SlackBuild
index 550dae7596722..026b177298319 100644
--- a/development/FreeBASIC/FreeBASIC.SlackBuild
+++ b/development/FreeBASIC/FreeBASIC.SlackBuild
@@ -53,6 +53,8 @@
# problems. The sdl2-hello example segfaults with both the prebuilt
# and built-from-source fbc :(
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=FreeBASIC
VERSION=${VERSION:-1.07.1}
BUILD=${BUILD:-3}
@@ -66,7 +68,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}