aboutsummaryrefslogtreecommitdiff
path: root/system/glances/glances.SlackBuild
diff options
context:
space:
mode:
authorPhilip Lacroix <philnx@posteo.de>2014-12-27 20:59:34 +0700
committerRobby Workman <rworkman@slackbuilds.org>2014-12-27 23:16:21 -0600
commit9280cb6c7536e8b945ed4b6b5a8fc6d7857dda62 (patch)
tree7fcd18dc28f3a67a872724843e75293d58b77729 /system/glances/glances.SlackBuild
parentd573df69fc40a16196cdc53742f6d549add7221b (diff)
system/glances: Updated for version 2.2.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/glances/glances.SlackBuild')
-rw-r--r--system/glances/glances.SlackBuild11
1 files changed, 9 insertions, 2 deletions
diff --git a/system/glances/glances.SlackBuild b/system/glances/glances.SlackBuild
index e998a53d0424..3d5f740f0c1d 100644
--- a/system/glances/glances.SlackBuild
+++ b/system/glances/glances.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=glances
-VERSION=${VERSION:-2.1.2}
+VERSION=${VERSION:-2.2.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -46,7 +46,14 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/v$VERSION.tar.gz
+
+# The tarball will be named differently, depending on the file being downloaded
+# manually or with wget.
+if [ -e $CWD/v$VERSION.tar.gz ]; then
+ tar xvf $CWD/v$VERSION.tar.gz
+else
+ tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+fi
cd $PRGNAM-$VERSION
chown -R root:root .