diff options
author | Dave Woodfall <dave@slackbuilds.org> | 2020-04-10 15:31:17 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2020-04-11 09:29:56 +0700 |
commit | 7f4dc719f82c5b246e3402e37d730920c722dcb7 (patch) | |
tree | 34b6370d156e93578abb1635b447a6ec815a65ef /libraries/qt5-webkit/qt5-webkit.SlackBuild | |
parent | 5eed996a14743259b5b7553f11104281c6ce78dd (diff) | |
download | slackbuilds-7f4dc719f82c5b246e3402e37d730920c722dcb7.tar.gz |
libraries/qt5-webkit: Updated for version 5.212.0_alpha4.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/qt5-webkit/qt5-webkit.SlackBuild')
-rw-r--r-- | libraries/qt5-webkit/qt5-webkit.SlackBuild | 51 |
1 files changed, 17 insertions, 34 deletions
diff --git a/libraries/qt5-webkit/qt5-webkit.SlackBuild b/libraries/qt5-webkit/qt5-webkit.SlackBuild index a13f448a54..6255e395b9 100644 --- a/libraries/qt5-webkit/qt5-webkit.SlackBuild +++ b/libraries/qt5-webkit/qt5-webkit.SlackBuild @@ -27,8 +27,10 @@ # Adapted for 5.9.0 by David Woodfall <dave@slackbuilds.org> PRGNAM=qt5-webkit -SRCNAM=qtwebkit-opensource-src -VERSION=${VERSION:-5.9.0} +SRCNAM=qtwebkit +VERSION=${VERSION:-5.212.0_alpha4} +SRCDIR=${SRCNAM}-$(echo $VERSION | sed -r "s,\.[[:digit:]]+_.*,,") +SRCVERSION=$(echo v$VERSION | tr -s '_' '-') BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -64,9 +66,9 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $SRCNAM-$VERSION -tar xvf $CWD/$SRCNAM-$VERSION.tar.xz -cd $SRCNAM-$VERSION +rm -rf $SRCDIR +tar xvf $CWD/$SRCNAM-$SRCVERSION.tar.gz +cd $SRCDIR chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -80,40 +82,21 @@ export OPENSOURCE_CXXFLAGS="$SLKCFLAGS" export QTDIR="/usr/lib$LIBDIRSUFFIX/qt5" export LD_LIBRARY_PATH="${QTDIR}/qtbase/lib:${QTDIR}/qttools/lib:${LD_LIBRARY_PATH}" -# Install path fix for libplatformplugin.so. -# https://bugs.webkit.org/show_bug.cgi?id=117077 -patch -p2 < $CWD/platformplugin-install-path-fix.patch - -if [ -d include ]; then - syncqt.pl -version $VERSION Source/sync.profile -fi - -qmake-qt5 PREFIX="/usr" QMAKE_CFLAGS+="$SLKCFLAGS" QMAKE_CXXFLAGS+="$SLKCFLAGS" \ - -o Makefile WebKit.pro - -make -make install INSTALL_ROOT=$PKG +mkdir -p build +cd build + cmake \ + -DPORT=Qt \ + -DQt5_DIR=$QTDIR \ + -DCMAKE_BUILD_TYPE=Release .. + make + make install DESTDIR=$PKG +cd .. 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 -# Fix internal linking for Qt5WebKit.pc -sed -i \ - -e "s|-Wl,-whole-archive -lWebKit1 -Wl,-no-whole-archive -L${PWD}/Source/WebKit[^ ]* ||" \ - -e "s|-Wl,-whole-archive -lWebKit2 -Wl,-no-whole-archive -L${PWD}/Source/WebKit2[^ ]* ||" \ - -e "s|-Wl,-whole-archive -lWebCore -Wl,-no-whole-archive -L${PWD}/Source/WebCore[^ ]* ||" \ - -e "s|-Wl,-whole-archive -lANGLE -Wl,-no-whole-archive -L${PWD}/Source/ThirdParty/ANGLE[^ ]* ||" \ - -e "s|-Wl,-whole-archive -lleveldb -Wl,-no-whole-archive -L${PWD}/Source/ThirdParty/leveldb[^ ]* ||" \ - -e "s|-Wl,-whole-archive -lJavaScriptCore -Wl,-no-whole-archive -L${PWD}/Source/JavaScriptCore[^ ]* ||" \ - -e "s|-Wl,-whole-archive -lWTF -Wl,-no-whole-archive -L${PWD}/Source/WTF[^ ]* ||" \ - $PKG/usr/lib${LIBDIRSUFFIX}/pkgconfig/Qt5WebKit.pc - -# Fix the path in prl files: -find "$PKG/usr/lib${LIBDIRSUFFIX}" -type f -name '*.prl' \ - -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \; - mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a ChangeLog* LICENSE* VERSION $PKG/usr/doc/$PRGNAM-$VERSION +cp -a LICENSE* README $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |