diff options
author | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-09-18 05:11:08 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-09-23 06:11:51 +0700 |
commit | fdc0d336a7dc1b4648bcf00cc51f5d99cc94c404 (patch) | |
tree | af195405f36d6b0977bf14380052ea35ffd2fadd /office/calibre/calibre.SlackBuild | |
parent | bb943e3a7e604c7b2e186a27f9d31aa3a9b83a6e (diff) | |
download | slackbuilds-fdc0d336a7dc1b4648bcf00cc51f5d99cc94c404.tar.gz |
office/calibre: Fix build against new Qt5.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'office/calibre/calibre.SlackBuild')
-rw-r--r-- | office/calibre/calibre.SlackBuild | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/office/calibre/calibre.SlackBuild b/office/calibre/calibre.SlackBuild index 74abdcbd2f..0b53b80bf3 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 |