aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--system/ncdu/ncdu.SlackBuild12
-rw-r--r--system/ncdu/ncdu.info8
2 files changed, 12 insertions, 8 deletions
diff --git a/system/ncdu/ncdu.SlackBuild b/system/ncdu/ncdu.SlackBuild
index af194735c632e..8293b90c045ec 100644
--- a/system/ncdu/ncdu.SlackBuild
+++ b/system/ncdu/ncdu.SlackBuild
@@ -3,13 +3,12 @@
# Slackware build script for ncdu
# Written by Erik Hanson erik@slackbuilds.org
-set -eu
-
PRGNAM=ncdu
-VERSION=1.4
+VERSION=1.5
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -19,8 +18,12 @@ if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
fi
+set -eu
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
@@ -35,7 +38,8 @@ CFLAGS="$SLKCFLAGS" \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
- --mandir=/usr/man
+ --mandir=/usr/man \
+ --build=$ARCH-slackware-linux
make
make install DESTDIR=$PKG
diff --git a/system/ncdu/ncdu.info b/system/ncdu/ncdu.info
index c1fb549580332..2b7100f26a211 100644
--- a/system/ncdu/ncdu.info
+++ b/system/ncdu/ncdu.info
@@ -1,8 +1,8 @@
PRGNAM="ncdu"
-VERSION="1.4"
+VERSION="1.5"
HOMEPAGE="http://dev.yorhel.nl/ncdu/"
-DOWNLOAD="http://dev.yorhel.nl/download/ncdu-1.4.tar.gz"
-MD5SUM="07f01579f7c9852033139ae9fa2414c9"
+DOWNLOAD="http://dev.yorhel.nl/download/ncdu-1.5.tar.gz"
+MD5SUM="90a69cc3b2e9f0324eb14e6ce1df0f22"
MAINTAINER="Erik Hanson"
EMAIL="erik@slackbuilds.org"
-APPROVED="Michiel"
+APPROVED="dsomero"