summaryrefslogtreecommitdiff
path: root/system/ncdu
diff options
context:
space:
mode:
Diffstat (limited to 'system/ncdu')
-rw-r--r--system/ncdu/ncdu.SlackBuild23
-rw-r--r--system/ncdu/ncdu.info8
2 files changed, 17 insertions, 14 deletions
diff --git a/system/ncdu/ncdu.SlackBuild b/system/ncdu/ncdu.SlackBuild
index a0e4482c5a..af194735c6 100644
--- a/system/ncdu/ncdu.SlackBuild
+++ b/system/ncdu/ncdu.SlackBuild
@@ -2,10 +2,11 @@
# Slackware build script for ncdu
# Written by Erik Hanson erik@slackbuilds.org
-# Updated for version 1.3 by Michiel van Wessem <michiel@slackbuilds.org>
+
+set -eu
PRGNAM=ncdu
-VERSION=1.3
+VERSION=1.4
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -22,9 +23,9 @@ fi
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
-cd $TMP || exit 1
+cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
@@ -34,17 +35,19 @@ CFLAGS="$SLKCFLAGS" \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
- --mandir=/usr/man \
- || exit 1
+ --mandir=/usr/man
-make || exit 1
-make install DESTDIR=$PKG || exit 1
+make
+make install DESTDIR=$PKG
-find $PKG | xargs file | egrep "ELF.*executable" | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+find $PKG | xargs file | egrep "ELF.*executable" | cut -f 1 -d : \
+ | xargs strip --strip-unneeded 2> /dev/null
gzip -9 $PKG/usr/man/man?/*
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION $PKG/install
-cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
cat $CWD/slack-desc > $PKG/install/slack-desc
diff --git a/system/ncdu/ncdu.info b/system/ncdu/ncdu.info
index 8d6986b6cc..c1fb549580 100644
--- a/system/ncdu/ncdu.info
+++ b/system/ncdu/ncdu.info
@@ -1,8 +1,8 @@
PRGNAM="ncdu"
-VERSION="1.3"
+VERSION="1.4"
HOMEPAGE="http://dev.yorhel.nl/ncdu/"
-DOWNLOAD="http://dev.yorhel.nl/download/ncdu-1.3.tar.gz"
-MD5SUM="204bacb8376819059bec6c8287a87a67"
+DOWNLOAD="http://dev.yorhel.nl/download/ncdu-1.4.tar.gz"
+MD5SUM="07f01579f7c9852033139ae9fa2414c9"
MAINTAINER="Erik Hanson"
EMAIL="erik@slackbuilds.org"
-APPROVED="rworkman"
+APPROVED="Michiel"