aboutsummaryrefslogtreecommitdiff
path: root/academic/magic/magic.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'academic/magic/magic.SlackBuild')
-rw-r--r--academic/magic/magic.SlackBuild3
1 files changed, 2 insertions, 1 deletions
diff --git a/academic/magic/magic.SlackBuild b/academic/magic/magic.SlackBuild
index d2b7b7d80a70..065e84ffedea 100644
--- a/academic/magic/magic.SlackBuild
+++ b/academic/magic/magic.SlackBuild
@@ -14,6 +14,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=magic
VERSION=${VERSION:-8.0.211}
BUILD=${BUILD:-1}
@@ -27,7 +29,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}