2016-03-27 18:30:28 +00:00
|
|
|
# $Id: PKGBUILD 240297 2015-06-03 10:22:03Z fyan $
|
|
|
|
# Maintainer: Felix Yan <felixonmars@archlinux.org>
|
2017-06-17 14:49:29 +00:00
|
|
|
# Maintainer: Antonio Rojas <arojas@archlinux.org>
|
2016-03-27 18:30:28 +00:00
|
|
|
# Contributor: Andrea Scarpino <andrea@archlinux.org>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
2017-08-14 18:29:11 +00:00
|
|
|
# - patch to link with libatomic on v5/v6
|
2017-06-17 14:49:29 +00:00
|
|
|
# - disable jit on v5/v6
|
|
|
|
|
|
|
|
highmem=1
|
2016-03-27 18:30:28 +00:00
|
|
|
|
|
|
|
pkgname=qt5-webkit
|
2017-06-17 14:49:29 +00:00
|
|
|
_qtver=5.212.0-alpha2
|
2016-03-27 18:30:28 +00:00
|
|
|
pkgver=${_qtver/-/}
|
2017-11-17 23:32:01 +00:00
|
|
|
pkgrel=8
|
|
|
|
arch=(x86_64)
|
2016-03-27 18:30:28 +00:00
|
|
|
url='http://qt-project.org/'
|
2017-06-17 14:49:29 +00:00
|
|
|
license=(GPL3 LGPL3 FDL custom)
|
2016-03-27 18:30:28 +00:00
|
|
|
pkgdesc='Classes for a WebKit2 based implementation and a new QML API'
|
2017-06-17 14:49:29 +00:00
|
|
|
depends=(qt5-location qt5-sensors qt5-webchannel libwebp libxslt libxcomposite gst-plugins-base hyphen)
|
|
|
|
makedepends=(cmake ruby gperf python2 qt5-doc qt5-tools)
|
2016-03-27 18:30:28 +00:00
|
|
|
optdepends=('gst-plugins-good: Webm codec support')
|
2017-08-14 18:29:11 +00:00
|
|
|
conflicts=(qt5-webkit-ng qt5-webkit-og)
|
|
|
|
replaces=(qt5-webkit-ng qt5-webkit-og)
|
2017-06-17 14:49:29 +00:00
|
|
|
groups=(qt qt5)
|
2017-06-08 23:43:16 +00:00
|
|
|
_pkgfqn="${pkgname/5-/}-opensource-src-${_qtver}"
|
2017-07-04 15:02:09 +00:00
|
|
|
source=("https://github.com/annulen/webkit/releases/download/qtwebkit-$_qtver/qtwebkit-$_qtver.tar.xz"
|
2017-08-14 18:29:11 +00:00
|
|
|
qt5-webkit-gcc7.patch
|
2017-11-04 16:37:47 +00:00
|
|
|
qt5-webkit-null-pointer-dereference.patch
|
2017-10-27 00:18:40 +00:00
|
|
|
qt5-webkit-trojita-1.patch::"https://github.com/annulen/webkit/commit/6faf1121.patch"
|
|
|
|
qt5-webkit-trojita-2.patch::"https://github.com/annulen/webkit/commit/76420459.patch"
|
2017-08-14 18:29:11 +00:00
|
|
|
atomic.patch)
|
2017-07-04 15:02:09 +00:00
|
|
|
sha256sums=('f8f901de567e11fc5659402b6b827eac75505ff9c5072d8e919aa306003f8f8a'
|
2017-08-14 18:29:11 +00:00
|
|
|
'f108833562d766d4c086026f9202b2ebc8c19e97fddedce952afed78df3c0720'
|
2017-11-04 16:37:47 +00:00
|
|
|
'510e1f78c2bcd76909703a097dbc1d5c9c6ce4cd94883c26138f09cc10121f43'
|
2017-10-27 00:18:40 +00:00
|
|
|
'bd22bd7842d5ad1cb1f5a4b6acb2674509732274d5f9dc51943144dff76996ae'
|
|
|
|
'b42b70fd2a4a36b0ff48fc4e0dc386b3dda373e6fec18f3be9f5e2d3b04e0aa3'
|
2017-08-14 18:29:11 +00:00
|
|
|
'23fbd785daf116c71b3ce87d40860f0a6c56ab1065ee98ec41634626ca961129')
|
2016-03-27 18:30:28 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
mkdir -p build
|
2017-07-04 15:02:09 +00:00
|
|
|
|
|
|
|
# Fix crashes with GCC7 https://bugs.webkit.org/show_bug.cgi?id=173407
|
|
|
|
cd qtwebkit-$_qtver
|
|
|
|
patch -p1 -i ../qt5-webkit-gcc7.patch
|
2017-10-27 00:18:40 +00:00
|
|
|
# Fix layout issues in trojita https://github.com/annulen/webkit/issues/511
|
|
|
|
patch -p1 -i ../qt5-webkit-trojita-1.patch
|
|
|
|
patch -p1 -i ../qt5-webkit-trojita-2.patch
|
2017-11-04 16:37:47 +00:00
|
|
|
# Fix null point dereference (Fedora) https://github.com/annulen/webkit/issues/573
|
|
|
|
patch -p1 -i ../qt5-webkit-null-pointer-dereference.patch
|
2017-08-14 18:29:11 +00:00
|
|
|
if [[ $CARCH == "arm" || $CARCH == "armv6h" ]]; then
|
|
|
|
patch -p0 -i ../atomic.patch
|
|
|
|
fi
|
2016-03-27 18:30:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2017-06-17 14:49:29 +00:00
|
|
|
cd build
|
|
|
|
|
|
|
|
[[ $CARCH == "arm" || $CARCH == "armv6h" ]] && CONFIG="-DENABLE_JIT=OFF"
|
2016-03-27 18:30:28 +00:00
|
|
|
|
2017-06-17 14:49:29 +00:00
|
|
|
cmake ../qtwebkit-$_qtver \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DPORT=Qt \
|
|
|
|
-DENABLE_TOOLS=OFF \
|
2017-08-14 18:29:11 +00:00
|
|
|
$CONFIG
|
2016-03-27 18:30:28 +00:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd build
|
2017-06-17 14:49:29 +00:00
|
|
|
make DESTDIR="$pkgdir" install
|
2016-03-27 18:30:28 +00:00
|
|
|
|
|
|
|
install -d "$pkgdir"/usr/share/licenses
|
|
|
|
ln -s /usr/share/licenses/qt5-base "$pkgdir"/usr/share/licenses/${pkgname}
|
2017-06-25 13:57:55 +00:00
|
|
|
|
|
|
|
# Fix pkgconfig files
|
|
|
|
sed -e 's|qt/Qt5WebKit|qt/QtWebKit|' -i "$pkgdir"/usr/lib/pkgconfig/Qt5WebKit.pc
|
|
|
|
sed -e 's|qt/Qt5WebKitWidgets|qt/QtWebKitWidgets|' -i "$pkgdir"/usr/lib/pkgconfig/Qt5WebKitWidgets.pc
|
|
|
|
sed -e '/Name/a Description: Qt WebKit module' -i "$pkgdir"/usr/lib/pkgconfig/Qt5WebKit.pc
|
|
|
|
sed -e '/Name/a Description: Qt WebKitWidgets module' -i "$pkgdir"/usr/lib/pkgconfig/Qt5WebKitWidgets.pc
|
2016-03-27 18:30:28 +00:00
|
|
|
}
|