diff options
author | Dimitris Zlatanidis <d.zlatanidis@gmail.com> | 2020-02-21 08:18:40 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2020-02-24 06:10:04 +0700 |
commit | ea50cd0168a4f1204090ad2400e6444d3ea267b8 (patch) | |
tree | 457093a1e7c7a76fb03edce1350d98c173509bc4 /libraries/PrettyTable/PrettyTable.SlackBuild | |
parent | 8d3747dc7bc6e40a40a22edef39b0f14e1caeb4a (diff) | |
download | slackbuilds-ea50cd0168a4f1204090ad2400e6444d3ea267b8.tar.xz |
libraries/PrettyTable: Added support python3.
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
Diffstat (limited to 'libraries/PrettyTable/PrettyTable.SlackBuild')
-rw-r--r-- | libraries/PrettyTable/PrettyTable.SlackBuild | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/libraries/PrettyTable/PrettyTable.SlackBuild b/libraries/PrettyTable/PrettyTable.SlackBuild index 6e4762dafbd8..d4e1ecd2f4c0 100644 --- a/libraries/PrettyTable/PrettyTable.SlackBuild +++ b/libraries/PrettyTable/PrettyTable.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for PrettyTable -# Copyright 2014-2016 Dimitris Zlatanidis Orestiada, Greece +# Copyright 2014-2020 Dimitris Zlatanidis Orestiada, Greece # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,7 +25,7 @@ PRGNAM=PrettyTable SRCNAM=prettytable VERSION=${VERSION:-0.7.2} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -72,6 +72,11 @@ find -L . \ 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 |