aboutsummaryrefslogtreecommitdiff
path: root/gis/whitebox-tools/whitebox-tools.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'gis/whitebox-tools/whitebox-tools.SlackBuild')
-rw-r--r--gis/whitebox-tools/whitebox-tools.SlackBuild3
1 files changed, 2 insertions, 1 deletions
diff --git a/gis/whitebox-tools/whitebox-tools.SlackBuild b/gis/whitebox-tools/whitebox-tools.SlackBuild
index 5ef6926b34a60..da41a7b9595ce 100644
--- a/gis/whitebox-tools/whitebox-tools.SlackBuild
+++ b/gis/whitebox-tools/whitebox-tools.SlackBuild
@@ -22,6 +22,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)
+
PRGNAM=whitebox-tools
BINNAM=`echo $PRGNAM | tr - _`
VERSION=${VERSION:-1.5.0}
@@ -42,7 +44,6 @@ if [ -z "$ARCH" ]; then
fi
fi
-CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}