aboutsummaryrefslogtreecommitdiff
path: root/system/ncdu/ncdu.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/ncdu/ncdu.SlackBuild')
-rw-r--r--system/ncdu/ncdu.SlackBuild9
1 files changed, 5 insertions, 4 deletions
diff --git a/system/ncdu/ncdu.SlackBuild b/system/ncdu/ncdu.SlackBuild
index 296583edd591..a0e4482c5a34 100644
--- a/system/ncdu/ncdu.SlackBuild
+++ b/system/ncdu/ncdu.SlackBuild
@@ -2,13 +2,14 @@
# Slackware build script for ncdu
# Written by Erik Hanson erik@slackbuilds.org
+# Updated for version 1.3 by Michiel van Wessem <michiel@slackbuilds.org>
PRGNAM=ncdu
-VERSION=0.2
+VERSION=1.3
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-CWD=`pwd`
+CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -20,8 +21,8 @@ elif [ "$ARCH" = "i686" ]; then
fi
rm -rf $PKG
-mkdir -p $TMP $PKG
-cd $TMP
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP || exit 1
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1
cd $PRGNAM-$VERSION