aboutsummaryrefslogtreecommitdiff
path: root/autotools-template.SlackBuild
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@slackbuilds.org>2021-07-03 10:31:42 +0200
committerHeinz Wiesinger <pprkut@slackbuilds.org>2021-07-03 12:16:56 +0200
commitc6c65e5629bd27c2255ae5070dd57842147a267e (patch)
tree32ce03d85fc497a68ab57ddc6d1870f3c4ea5164 /autotools-template.SlackBuild
parentbab9e3ed89a5e44ed02702018b086fe560b2586f (diff)
*.SlackBuild: SlackBuilds run in the directory they are in
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
Diffstat (limited to 'autotools-template.SlackBuild')
-rw-r--r--autotools-template.SlackBuild3
1 files changed, 2 insertions, 1 deletions
diff --git a/autotools-template.SlackBuild b/autotools-template.SlackBuild
index 4c330b5..fffa185 100644
--- a/autotools-template.SlackBuild
+++ b/autotools-template.SlackBuild
@@ -48,6 +48,8 @@
#
# |-----------------------------------------------------------------| #
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=appname # replace with name of program
VERSION=${VERSION:-1.4.1} # replace with version of program
BUILD=${BUILD:-1}
@@ -63,7 +65,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
TMP=${TMP:-/tmp/SBo} # For consistency's sake, use this
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp} # Drop the package in /tmp