diff options
author | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2020-01-18 11:04:17 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2020-01-18 11:04:17 +0700 |
commit | 8d3d78b9b4abb15df3674ae784812254256d0ca9 (patch) | |
tree | aaad2cf8fdc38a43d26e1605e957e560a54aa0b1 /python | |
parent | fd36a42e5ba263bc824e3a7a0875ca453ab74714 (diff) | |
download | slackbuilds-8d3d78b9b4abb15df3674ae784812254256d0ca9.tar.gz |
python/python-augeas: Add python3 support.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python')
-rw-r--r-- | python/python-augeas/python-augeas.SlackBuild | 12 |
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 |