summaryrefslogtreecommitdiff
path: root/system/ncdu/ncdu.SlackBuild
diff options
context:
space:
mode:
authorErik Hanson <erik@slackbuilds.org>2010-05-12 17:45:34 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-12 17:45:34 +0200
commit4302fa55794dfd0953c3b287fb10d8b80fa912a2 (patch)
tree4be2c4d9881a908ec090eb9b8119874b88924b21 /system/ncdu/ncdu.SlackBuild
parentbac9797639f1807e27631c4ad95cf7c9761d606f (diff)
downloadslackbuilds-4302fa55794dfd0953c3b287fb10d8b80fa912a2.tar.gz
system/ncdu: Updated for version 1.5
Diffstat (limited to 'system/ncdu/ncdu.SlackBuild')
-rw-r--r--system/ncdu/ncdu.SlackBuild12
1 files changed, 8 insertions, 4 deletions
diff --git a/system/ncdu/ncdu.SlackBuild b/system/ncdu/ncdu.SlackBuild
index af194735c6..8293b90c04 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