python/pyicu: Add python3 support.

Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
David Spencer 2017-04-04 21:50:57 +01:00 committed by Willy Sudiarto Raharjo
parent 76e16b5e5e
commit 7bfe32588c
2 changed files with 10 additions and 0 deletions

View file

@ -1,2 +1,7 @@
PyICU is a Python extension wrapping IBM's International
Components for Unicode C++ library (ICU).
python3 is an optional dependency. You need to set PYTHON3=yes,
for example:
PYTHON3=yes ./pyicu.SlackBuild

View file

@ -59,6 +59,11 @@ find -L . \
python setup.py install --root=$PKG
if [ "${PYTHON3:-no}" = "yes" ]; then
rm -rf build
python3 setup.py install --root=$PKG
fi
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true