aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-09-18 05:11:08 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-09-23 06:11:51 +0700
commitfdc0d336a7dc1b4648bcf00cc51f5d99cc94c404 (patch)
treeaf195405f36d6b0977bf14380052ea35ffd2fadd
parentbb943e3a7e604c7b2e186a27f9d31aa3a9b83a6e (diff)
office/calibre: Fix build against new Qt5.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--office/calibre/calibre.SlackBuild4
1 files changed, 4 insertions, 0 deletions
diff --git a/office/calibre/calibre.SlackBuild b/office/calibre/calibre.SlackBuild
index 74abdcbd2f14..0b53b80bf3d9 100644
--- a/office/calibre/calibre.SlackBuild
+++ b/office/calibre/calibre.SlackBuild
@@ -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