polib: Add python3 support.

We might want add python3 in the future.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackware-id.org>
This commit is contained in:
Willy Sudiarto Raharjo 2016-05-12 01:43:29 +07:00
parent a9ad3ca536
commit 21c93a15e0

View file

@ -70,6 +70,11 @@ find -L . \
python setup.py install --root=$PKG python setup.py install --root=$PKG
# Check for python3
if [ -f /usr/bin/python3 ]; then
python3 setup.py install --root=$PKG
fi
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ 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 | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true