From 8d3d78b9b4abb15df3674ae784812254256d0ca9 Mon Sep 17 00:00:00 2001 From: Willy Sudiarto Raharjo Date: Sat, 18 Jan 2020 11:04:17 +0700 Subject: python/python-augeas: Add python3 support. Signed-off-by: Willy Sudiarto Raharjo --- python/python-augeas/python-augeas.SlackBuild | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'python/python-augeas') 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 -- cgit v1.2.3