office/calibre: Fix build against new Qt5.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Willy Sudiarto Raharjo 2018-09-18 05:11:08 +07:00
parent bb943e3a7e
commit fdc0d336a7
No known key found for this signature in database
GPG key ID: 887B8374D7333381

View file

@ -79,6 +79,10 @@ patch -p1 < $CWD/patches/calibre-no-update.patch
# Remove calibre portable scripts.
rm -f resources/calibre-portable.*
PYTHONVER=$(python -V 2>&1 | cut -f 2 -d' ' | cut -f 1-2 -d.)
export SIP_BIN=/usr/bin/python2-sip
export SIP_INC_DIR="/usr/include/python$PYTHONVER/python2-sip"
OVERRIDE_CFLAGS="$SLKCFLAGS" \
OVERRIDE_LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}" \
python setup.py build