aboutsummaryrefslogtreecommitdiff
path: root/libraries/opencl-amd/opencl-amd.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/opencl-amd/opencl-amd.SlackBuild')
-rw-r--r--libraries/opencl-amd/opencl-amd.SlackBuild3
1 files changed, 2 insertions, 1 deletions
diff --git a/libraries/opencl-amd/opencl-amd.SlackBuild b/libraries/opencl-amd/opencl-amd.SlackBuild
index daacd1a179f2..e1e59cca9286 100644
--- a/libraries/opencl-amd/opencl-amd.SlackBuild
+++ b/libraries/opencl-amd/opencl-amd.SlackBuild
@@ -27,6 +27,8 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM="opencl-amd"
VERSION=${VERSION:-19.50}
MINVER="967956"
@@ -58,7 +60,6 @@ EOF
exit 1
fi
-CWD=$(pwd)
TMP=${TMP:-/tmp}
PKG="${TMP}/package-${PRGNAM}"
SRCDIR="${TMP}/${SRCNAM}"