python/pyxdg: Add python3 support.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Willy Sudiarto Raharjo 2016-05-07 23:33:34 +07:00
parent ab032da3b2
commit 7138036afd
2 changed files with 9 additions and 0 deletions

View file

@ -1 +1,5 @@
PyXDG contains implementations of freedesktop.org standards in python. PyXDG contains implementations of freedesktop.org standards in python.
To install python3 bindings run the slackbuild with PYTHON3=yes.
# PYTHON3=yes ./pyxdg.SlackBuild

View file

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