summaryrefslogtreecommitdiffstats
path: root/slackware64-current/source/d/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'slackware64-current/source/d/cmake')
-rwxr-xr-xslackware64-current/source/d/cmake/cmake.SlackBuild3
1 files changed, 2 insertions, 1 deletions
diff --git a/slackware64-current/source/d/cmake/cmake.SlackBuild b/slackware64-current/source/d/cmake/cmake.SlackBuild
index 06f008d16..7c8eb378d 100755
--- a/slackware64-current/source/d/cmake/cmake.SlackBuild
+++ b/slackware64-current/source/d/cmake/cmake.SlackBuild
@@ -20,6 +20,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=cmake
VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
BUILD=${BUILD:-1}
@@ -46,7 +48,6 @@ else
SLKCFLAGS="-O2"
fi
-CWD=$(pwd)
TMP=${TMP:-/tmp}
PKG=$TMP/package-$PKGNAM