aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitris Zlatanidis <d.zlatanidis@gmail.com>2015-09-12 05:43:11 +0300
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-09-19 19:49:09 +0700
commitbdd410609e95b79666e3b0bbf8c427f3d7db497e (patch)
treee139b862c6bc9f01ea696392f6625b77d15992be
parent2f498778055f0a2b571755ef6f6e2d0a693eeb66 (diff)
network/weathercli: Update script.
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
-rw-r--r--network/weathercli/weathercli.SlackBuild8
1 files changed, 6 insertions, 2 deletions
diff --git a/network/weathercli/weathercli.SlackBuild b/network/weathercli/weathercli.SlackBuild
index 06e772c35c680..2073cb7c1c3da 100644
--- a/network/weathercli/weathercli.SlackBuild
+++ b/network/weathercli/weathercli.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for weathercli
-# Copyright 2014 Dimitris Zlatanidis Greece-Orestiada
+# Copyright 2014-2015 Dimitris Zlatanidis Orestiada, Greece
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,7 +25,7 @@
PRGNAM=weathercli
VERSION=${VERSION:-2.3.1}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -70,6 +70,10 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+# rename executable
+sed -i "s/bin\/weather/bin\/weathercli/" setup.py
+mv bin/weather bin/weathercli
+
python setup.py install --root=$PKG
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \