summaryrefslogtreecommitdiffstats
path: root/slackware64-current/source/d/llvm/llvm.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'slackware64-current/source/d/llvm/llvm.SlackBuild')
-rwxr-xr-xslackware64-current/source/d/llvm/llvm.SlackBuild3
1 files changed, 2 insertions, 1 deletions
diff --git a/slackware64-current/source/d/llvm/llvm.SlackBuild b/slackware64-current/source/d/llvm/llvm.SlackBuild
index ebae65c7c..fa0e6b6af 100755
--- a/slackware64-current/source/d/llvm/llvm.SlackBuild
+++ b/slackware64-current/source/d/llvm/llvm.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=llvm
VERSION=${VERSION:-$(echo llvm-*.tar.xz | rev | cut -f 4- -d . | cut -f 1 -d - | rev)}
BUILD=${BUILD:-1}
@@ -37,7 +39,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
TMP=${TMP:-/tmp}
PKG=$TMP/package-$PKGNAM