summaryrefslogtreecommitdiff
path: root/python/Unidecode
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-01-17 01:21:45 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-01-17 01:21:45 +0700
commitaa29a76b8a82fbc6b8853749d1692aad12b34377 (patch)
tree9b98904739d0c0f0a235f88535cf438dc3335ece /python/Unidecode
parent24db4ef01e45f7e959853f746385b27874ab1a77 (diff)
downloadslackbuilds-aa29a76b8a82fbc6b8853749d1692aad12b34377.tar.gz
python/Unidecode: Add python3 support.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/Unidecode')
-rw-r--r--python/Unidecode/Unidecode.SlackBuild5
1 files changed, 5 insertions, 0 deletions
diff --git a/python/Unidecode/Unidecode.SlackBuild b/python/Unidecode/Unidecode.SlackBuild
index 0fcff3454d..defc384fff 100644
--- a/python/Unidecode/Unidecode.SlackBuild
+++ b/python/Unidecode/Unidecode.SlackBuild
@@ -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