summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Woodfall <dave@slackbuilds.org>2020-04-25 19:23:41 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-05-03 08:48:44 +0700
commit47f31d21c7b44346917fd1048f5a6dc31ef7f545 (patch)
tree7f1d5ff9a12733f17bee47c062c03c61b3d89321
parentb9e6f21603fe3343a76e4382fefaa8bc60fdd200 (diff)
downloadslackbuilds-47f31d21c7b44346917fd1048f5a6dc31ef7f545.tar.gz
libraries/python3-PyQt5: Change python3 include path.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--libraries/python3-PyQt5/python3-PyQt5.SlackBuild6
1 files changed, 2 insertions, 4 deletions
diff --git a/libraries/python3-PyQt5/python3-PyQt5.SlackBuild b/libraries/python3-PyQt5/python3-PyQt5.SlackBuild
index c577da540d..9c4399e1b5 100644
--- a/libraries/python3-PyQt5/python3-PyQt5.SlackBuild
+++ b/libraries/python3-PyQt5/python3-PyQt5.SlackBuild
@@ -33,7 +33,7 @@
PRGNAM=python3-PyQt5
SRCNAM=PyQt5
VERSION=${VERSION:-5.13.2}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -63,8 +63,6 @@ else
LIBDIRSUFFIX=""
fi
-PYTHONVER=$(python3 -V 2>&1 | cut -f 2 -d' ' | cut -f 1-2 -d.)
-
set -e
rm -rf $PKG
@@ -93,7 +91,7 @@ python3 configure.py \
--qsci-api \
-q /usr/bin/qmake-qt5 \
--sip=/usr/bin/python3-sip \
- --sip-incdir=/usr/include/python$PYTHONVER
+ --sip-incdir=$(pkg-config --cflags-only-I python3 | sed -e 's/^-I//')
make
make -j1 install DESTDIR=$PKG INSTALL_ROOT=$PKG