diff options
author | Dimitris Zlatanidis <d.zlatanidis@gmail.com> | 2020-03-25 12:04:41 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2020-03-28 13:20:34 +0700 |
commit | cbe570c9a0750a86982ec79885c89a4ce1a9f5c1 (patch) | |
tree | 727585ae6680db07db1e7ed7701b45ab992820d5 /network/speedtest-cli/speedtest-cli.SlackBuild | |
parent | 16f6021df890d09f1ca8a7329ed324ee471fa554 (diff) |
network/speedtest-cli: Updated script.
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/speedtest-cli/speedtest-cli.SlackBuild')
-rw-r--r-- | network/speedtest-cli/speedtest-cli.SlackBuild | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/network/speedtest-cli/speedtest-cli.SlackBuild b/network/speedtest-cli/speedtest-cli.SlackBuild index 9562919eb8bb..a4c0111069f1 100644 --- a/network/speedtest-cli/speedtest-cli.SlackBuild +++ b/network/speedtest-cli/speedtest-cli.SlackBuild @@ -24,7 +24,7 @@ PRGNAM=speedtest-cli VERSION=${VERSION:-2.1.2} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -69,7 +69,12 @@ 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 {} \; -python3 setup.py install --root=$PKG +python setup.py install --root=$PKG + +# Python 3 support. +if $(python3 -c 'import sys' 2>/dev/null); then + python3 setup.py install --root=$PKG +fi 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 |