python/python-pbkdf2: Add python3 support.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Willy Sudiarto Raharjo 2018-01-04 08:16:24 +07:00
parent 8a7492b2ff
commit bb86a5c081
1 changed files with 6 additions and 2 deletions

View File

@ -2,7 +2,7 @@
# Slackware build script for python-pbkdf2
# Copyright 2015-2016 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
# Copyright 2015-2018 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -54,7 +54,7 @@ else
LIBDIRSUFFIX=""
fi
set -e
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
@ -71,6 +71,10 @@ find -L . \
python setup.py install --root=$PKG
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