summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/pyxdg/README4
-rw-r--r--python/pyxdg/pyxdg.SlackBuild5
2 files changed, 9 insertions, 0 deletions
diff --git a/python/pyxdg/README b/python/pyxdg/README
index 485a238ba1..6247c59ae0 100644
--- a/python/pyxdg/README
+++ b/python/pyxdg/README
@@ -1 +1,5 @@
PyXDG contains implementations of freedesktop.org standards in python.
+
+To install python3 bindings run the slackbuild with PYTHON3=yes.
+
+ # PYTHON3=yes ./pyxdg.SlackBuild
diff --git a/python/pyxdg/pyxdg.SlackBuild b/python/pyxdg/pyxdg.SlackBuild
index a1e16ec70d..f54fe8a8fd 100644
--- a/python/pyxdg/pyxdg.SlackBuild
+++ b/python/pyxdg/pyxdg.SlackBuild
@@ -71,6 +71,11 @@ find -L . \
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 \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true