mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-18 22:06:04 +01:00
python/pyxdg: Add python3 support.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
ab032da3b2
commit
7138036afd
2 changed files with 9 additions and 0 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue