summaryrefslogtreecommitdiffstats
path: root/libraries/python3-PyQt5/python3-PyQt5.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/python3-PyQt5/python3-PyQt5.SlackBuild')
-rw-r--r--libraries/python3-PyQt5/python3-PyQt5.SlackBuild19
1 files changed, 8 insertions, 11 deletions
diff --git a/libraries/python3-PyQt5/python3-PyQt5.SlackBuild b/libraries/python3-PyQt5/python3-PyQt5.SlackBuild
index 759fbffc7b..9c4399e1b5 100644
--- a/libraries/python3-PyQt5/python3-PyQt5.SlackBuild
+++ b/libraries/python3-PyQt5/python3-PyQt5.SlackBuild
@@ -32,8 +32,8 @@
PRGNAM=python3-PyQt5
SRCNAM=PyQt5
-VERSION=${VERSION:-5.9.2}
-BUILD=${BUILD:-1}
+VERSION=${VERSION:-5.13.2}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -63,16 +63,14 @@ else
LIBDIRSUFFIX=""
fi
-PYTHONVER=$(python3 -V 2>&1 | cut -f 2 -d' ' | cut -f 1-2 -d.)
-
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf ${SRCNAM}_gpl-$VERSION
-tar xvf $CWD/${SRCNAM}_gpl-$VERSION.tar.gz
-cd ${SRCNAM}_gpl-$VERSION
+rm -rf ${SRCNAM}-$VERSION
+tar xvf $CWD/${SRCNAM}-$VERSION.tar.gz
+cd ${SRCNAM}-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -80,8 +78,6 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-# This is needed or an include from dbus is missed (thanks, Archlinux)
-sed -i '/target_config.dbus_inc_dirs = \[\]/d' configure.py
export QTDIR=/usr/lib${LIBDIRSUFFIX}/qt5
export QT5DIR=/usr/lib${LIBDIRSUFFIX}/qt5
@@ -92,12 +88,13 @@ export CXXFLAGS="$SLKCFLAGS"
python3 configure.py \
--confirm-license \
--verbose \
+ --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 install DESTDIR=$PKG INSTALL_ROOT=$PKG
+make -j1 install DESTDIR=$PKG INSTALL_ROOT=$PKG
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