summaryrefslogtreecommitdiff
path: root/system/glances/glances.SlackBuild
diff options
context:
space:
mode:
authorPhilip Lacroix <philnx@bluebottle.com>2014-03-11 20:53:39 +0700
committerErik Hanson <erik@slackbuilds.org>2014-03-12 12:42:51 -0500
commit7c593e18507a92fc4f177fb587fd232e14cacdc8 (patch)
treeac263843c01392174a66e5318b7836389d7ae531 /system/glances/glances.SlackBuild
parenta37fc6bd03f81ca48a4086530b719214283724b1 (diff)
downloadslackbuilds-7c593e18507a92fc4f177fb587fd232e14cacdc8.tar.gz
system/glances: Updated for version 1.7.4.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/glances/glances.SlackBuild')
-rw-r--r--system/glances/glances.SlackBuild29
1 files changed, 17 insertions, 12 deletions
diff --git a/system/glances/glances.SlackBuild b/system/glances/glances.SlackBuild
index b9ef3e5de8..10fd605103 100644
--- a/system/glances/glances.SlackBuild
+++ b/system/glances/glances.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for glances
-# Copyright 2013 Philip Lacroix <philnx at bluebottle dot com>
+# Copyright 2013-2014 Philip Lacroix <philnx at bluebottle dot com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=glances
-VERSION=${VERSION:-1.7.2}
+VERSION=${VERSION:-1.7.4}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -46,7 +46,8 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/v$VERSION.tar.gz || tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+tar xvf $CWD/v$VERSION.tar.gz
+
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -55,6 +56,11 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+PRGUSR=$PKG/usr
+PRGETC=$PKG/etc/$PRGNAM
+PRGSHR=$PKG/usr/share
+PRGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
+
python setup.py install --root=$PKG
# Python 3 support
@@ -62,19 +68,18 @@ if $(python3 -c 'import sys' 2>/dev/null); then
python3 setup.py install --root=$PKG
fi
-# Don't clobber configuration files
-mv $PKG/etc/$PRGNAM/$PRGNAM.conf $PKG/etc/$PRGNAM/$PRGNAM.conf.new
-
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-mv $PKG/usr/share/man $PKG/usr/
-gzip -9 $PKG/usr/man/man?/*.?
+mv $PRGETC/$PRGNAM.conf $PRGETC/$PRGNAM.conf.new
+
+mv $PRGSHR/man $PKG/usr/
+gzip -9 $PRGUSR/man/man?/*.?
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-mv $PKG/usr/share/doc/$PRGNAM/* $PKG/usr/doc/$PRGNAM-$VERSION
-rm -rf $PKG/usr/share/doc
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+mkdir -p $PRGDOC
+mv $PRGSHR/doc/$PRGNAM/* $PRGDOC/
+rm -rf $PRGSHR
+cat $CWD/$PRGNAM.SlackBuild > $PRGDOC/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc