system/ncdu: Updated for version 1.4

This commit is contained in:
Erik Hanson 2010-05-11 22:26:49 +02:00 committed by Michiel van Wessem
parent 5b9db1b707
commit 721ba322e1
2 changed files with 17 additions and 14 deletions

View file

@ -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

View file

@ -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"