Browse Source

l/qt5-webkit: Upgraded to qt5-webkit-5.9.1.

slackware-14.2
Damien Goutte-Gattat 3 years ago
parent
commit
01edc252b9
  1. 30
      l/qt5-webkit/qt5-webkit.SlackBuild
  2. 1
      l/qt5-webkit/qtwebkit-opensource-src-5.7.1.tar.xz.sha256
  3. 1
      l/qt5-webkit/qtwebkit-opensource-src-5.9.1.tar.xz.sha256

30
l/qt5-webkit/qt5-webkit.SlackBuild

@ -1,6 +1,6 @@
#!/bin/sh
# Build script for Slackware
# Copyright (C) 2017 Damien Goutte-Gattat
# Copyright (C) 2017,2019 Damien Goutte-Gattat
# Copyright 2006-2016 Patrick J. Volkerding, Sebeka, MN, USA
# All rights reserved.
#
@ -29,9 +29,9 @@
# Source package infos
NAMESRC=${NAMESRC:-qtwebkit}
VERSION=${VERSION:-5.7.1}
VERSION=${VERSION:-5.9.1}
ARCHIVE=${ARCHIVE:-$NAMESRC-opensource-src-$VERSION.tar.xz}
WGET=${WGET:-https://download.qt.io/community_releases/5.7/$VERSION/$ARCHIVE}
WGET=${WGET:-https://download.qt.io/archive/qt/5.9/$VERSION/submodules/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-qt5-webkit}
@ -90,19 +90,10 @@ case "$ARCH" in
*) TARGET=$ARCH-slackware-linux ;;
esac
# Use -reduce-relocations only on i?86 and x86_64 architextures.
# https://bugreports.qt-project.org/browse/QTBUG-36129
if echo $ARCH | grep -q '\(i.86\|x86_64\)' 2>/dev/null; then
RELOCATIONS="-reduce-relocations"
else
RELOCATIONS=""
fi
export CFLAGS="$SLKCFLAGS"
export CXXFLAGS="$SLKCFLAGS"
export OPENSOURCE_CXXFLAGS="$SLKCFLAGS"
export QTDIR="/usr/lib$LIBDIRSUFFIX/qt5"
export LD_LIBRARY_PATH="$QTDIR/qtbase/lib:$QTDIR/qttools/lib:$LD_LIBRARY_PATH"
# Get and verify the source archive
if [ ! -r $ARCHIVE ]; then
@ -112,13 +103,20 @@ fi
sha256sum -c $ARCHIVE.sha256
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
# Compile
# Extract
cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
mkdir $NAME/build
cd $NAME/build
qmake-qt5 ..
cd $NAME
# Avoid unneeded warning messages
sed -e '/CONFIG/a QMAKE_CXXFLAGS += -Wno-expansion-to-defined' \
-i Tools/qmake/mkspecs/features/unix/default_pre.prf
# Compile
mkdir build
cd build
qmake-qt5 ../WebKit.pro
make -j $JOBS
make install INSTALL_ROOT=$PKG
cd ..

1
l/qt5-webkit/qtwebkit-opensource-src-5.7.1.tar.xz.sha256

@ -1 +0,0 @@
a46cf7c89339645f94a5777e8ae5baccf75c5fc87ab52c9dafc25da3327b5f03 qtwebkit-opensource-src-5.7.1.tar.xz

1
l/qt5-webkit/qtwebkit-opensource-src-5.9.1.tar.xz.sha256

@ -0,0 +1 @@
28a560becd800a4229bfac317c2e5407cd3cc95308bc4c3ca90dba2577b052cf qtwebkit-opensource-src-5.9.1.tar.xz
Loading…
Cancel
Save