system/i2c-tools: Use a single make job, build python modules.

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
B. Watson 2019-01-11 10:16:22 +01:00 committed by Willy Sudiarto Raharjo
parent fde171b9aa
commit 6a0a778e77
No known key found for this signature in database
GPG Key ID: 887B8374D7333381
1 changed files with 4 additions and 1 deletions

View File

@ -83,8 +83,11 @@ sed -i \
-e "s|BUILD_STATIC_LIB\ ?=\ 1|BUILD_STATIC_LIB ?= 0|" \
Makefile
make
make -j1
make install DESTDIR=$PKG
( cd py-smbus
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