summaryrefslogtreecommitdiffstats
path: root/slackware64-current/source/l/ocl-icd/ocl-icd.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'slackware64-current/source/l/ocl-icd/ocl-icd.SlackBuild')
-rwxr-xr-xslackware64-current/source/l/ocl-icd/ocl-icd.SlackBuild3
1 files changed, 2 insertions, 1 deletions
diff --git a/slackware64-current/source/l/ocl-icd/ocl-icd.SlackBuild b/slackware64-current/source/l/ocl-icd/ocl-icd.SlackBuild
index d070c2ca4..c2932263d 100755
--- a/slackware64-current/source/l/ocl-icd/ocl-icd.SlackBuild
+++ b/slackware64-current/source/l/ocl-icd/ocl-icd.SlackBuild
@@ -23,6 +23,8 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PKGNAM=ocl-icd
VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
BUILD=${BUILD:-1}
@@ -58,7 +60,6 @@ else
LIBDIRSUFFIX=""
fi
-CWD=$(pwd)
TMP=${TMP:-/tmp}
PKG=$TMP/package-ocl-icd