blob: 069e436a0d104d41734b3e09b6d6a9fb25f8bbda (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
# $Id: PKGBUILD 196523 2013-10-14 18:08:22Z andrea $
# Maintainer: Andrea Scarpino <andrea@archlinux.org>
pkgname=qtwebkit
pkgver=2.3.3
pkgrel=1
arch=('i686' 'x86_64' 'mips64el')
url='http://trac.webkit.org/wiki/QtWebKit'
pkgdesc='An open source web browser engine (Qt port)'
license=('LGPL2.1' 'GPL3')
depends=('qt4' 'systemd' 'gstreamer0.10-base')
makedepends=('gperf' 'python2' 'ruby' 'git' 'mesa')
conflicts=('qt<4.8')
_qtver=4.8.5
source=("ftp://ftp.archlinux.org/other/packages/${pkgname}/${pkgname}-${pkgver}.tar.gz"
"http://download.qt-project.org/official_releases/qt/4.8/4.8.5/qt-everywhere-opensource-src-${_qtver}.tar.gz"
'use-python2.patch'
'bison3.patch'
'qwebview.patch'
'LLIntCLoop32BigEndian.patch')
sha1sums=('64f3ab7f8e53b5b971a3a6577fc61db0cc2ea31f'
'745f9ebf091696c0d5403ce691dc28c039d77b9e'
'315b6ff603f35e5492a036f7082f6aa075dfb607'
'd2c6182512e4bcbdf30a9e9d513c52fe4b16d9f2'
'88ed73e6bd7ea9c6d227ceaed0ff2f1cf0200667'
'af830ae24e2ae5113754c9ae524d27ec0a28a9d6')
prepare() {
cd ${pkgname}-${pkgver}
patch -p1 -i "${srcdir}"/use-python2.patch
patch -p1 -i "${srcdir}"/bison3.patch
cd ../qt-everywhere-opensource-src-${_qtver}
patch -p1 -i "${srcdir}"/qwebview.patch
if [ "$CARCH" = "mips64el" ]; then
# Fix MIPS N32 support.
sed -i 's/defined(_ABIO32)/(defined(_ABIO32) || defined(_ABIN32))/' \
Source/WTF/wtf/Platform.h
# Don't enable JIT even if configure finds that it's not supported.
sed -i 's/#define ENABLE_JIT 1/#define ENABLE_JIT 0/' \
Source/WTF/wtf/Platform.h
fi
}
build() {
cd ${pkgname}-${pkgver}
# Fix https://bugs.webkit.org/show_bug.cgi?id=103128, original patch with ChangeLog stripped.
patch -p0 -i "${srcdir}/LLIntCLoop32BigEndian.patch"
OPTS="--no-webkit2"
if [ "${CARCH}" = "i686" ]; then
# FS#33418
OPTS="${OPTS} --no-force-sse2"
fi
export QTDIR=/usr
export PATH="/usr/lib/qt4/bin:$PATH"
Tools/Scripts/build-webkit --qt \
--makeargs="${MAKEFLAGS}" \
--prefix=/usr \
${OPTS}
# Build the QWebView plugin (FS#27914)
cd ../qt-everywhere-opensource-src-${_qtver}/tools/designer/src/plugins/qwebview
qmake-qt4
make
}
package() {
cd ${pkgname}-${pkgver}
make INSTALL_ROOT="${pkgdir}" -C WebKitBuild/Release install
cd ../qt-everywhere-opensource-src-${_qtver}/tools/designer/src/plugins/qwebview
make INSTALL_ROOT="${pkgdir}" install
}
|