aboutsummaryrefslogtreecommitdiff
path: root/graphics/jpegoptim/jpegoptim.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/jpegoptim/jpegoptim.SlackBuild')
-rw-r--r--graphics/jpegoptim/jpegoptim.SlackBuild3
1 files changed, 2 insertions, 1 deletions
diff --git a/graphics/jpegoptim/jpegoptim.SlackBuild b/graphics/jpegoptim/jpegoptim.SlackBuild
index feb8fac6dd20d..f77c11eb04bd6 100644
--- a/graphics/jpegoptim/jpegoptim.SlackBuild
+++ b/graphics/jpegoptim/jpegoptim.SlackBuild
@@ -32,6 +32,8 @@
# - use long-form github URL
# - update configure to match template (actually use SLKCFLAGS).
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=jpegoptim
VERSION=${VERSION:-1.4.6}
BUILD=${BUILD:-1}
@@ -45,7 +47,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}