summaryrefslogtreecommitdiff
path: root/python/python-augeas
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-01-18 11:04:17 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-01-18 11:04:17 +0700
commit8d3d78b9b4abb15df3674ae784812254256d0ca9 (patch)
treeaaad2cf8fdc38a43d26e1605e957e560a54aa0b1 /python/python-augeas
parentfd36a42e5ba263bc824e3a7a0875ca453ab74714 (diff)
downloadslackbuilds-8d3d78b9b4abb15df3674ae784812254256d0ca9.tar.gz
python/python-augeas: Add python3 support.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/python-augeas')
-rw-r--r--python/python-augeas/python-augeas.SlackBuild12
1 files changed, 9 insertions, 3 deletions
diff --git a/python/python-augeas/python-augeas.SlackBuild b/python/python-augeas/python-augeas.SlackBuild
index 7f99d47d1a..7df52eaeff 100644
--- a/python/python-augeas/python-augeas.SlackBuild
+++ b/python/python-augeas/python-augeas.SlackBuild
@@ -29,7 +29,7 @@ TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -40,8 +40,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -71,6 +71,12 @@ 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