diff options
Diffstat (limited to 'system/ncdu/ncdu.SlackBuild')
-rw-r--r-- | system/ncdu/ncdu.SlackBuild | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/system/ncdu/ncdu.SlackBuild b/system/ncdu/ncdu.SlackBuild index a0e4482c5a342..af194735c632e 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 |