blob: ece8aa307f8d942db811fbb4c514a8cebd1485a8 (
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
|
# $Id: PKGBUILD 240297 2015-06-03 10:22:03Z fyan $
# Maintainer (Arch): Felix Yan <felixonmars@archlinux.org>
# Contributor (Arch): Andrea Scarpino <andrea@archlinux.org>
# Maintainer: André Silva <emulatorman@parabola.nu>
# Contributor: Luke R. <g4jc@openmailbox.org>
# Contributor: Isaac David <isacdaavid@at@isacdaavid@dot@info>
pkgname=qt5-webengine
_qtver=5.8.0
pkgver=${_qtver/-/}
pkgrel=2.parabola1
arch=('i686' 'x86_64' 'armv7h')
url='http://qt-project.org/'
license=('LGPL3' 'LGPL2.1' 'BSD')
pkgdesc='Provides support for web applications using the Chromium browser project, without nonfree codecs'
depends=('qt5-webchannel' 'qt5-location' 'libxcomposite' 'libxrandr' 'pciutils' 'libxss' 'libvpx'
'libevent' 'libsrtp' 'snappy' 'nss' 'protobuf' 'libxslt' 'minizip' 'ffmpeg')
makedepends=('python2' 'git' 'gperf' 'jsoncpp')
groups=('qt' 'qt5')
_pkgfqn="${pkgname/5-/}-opensource-src-${_qtver}"
source=("http://download.qt.io/official_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz" qt5-webengine-nss.patch
qtwebengine-5.7.0-icu58.patch
qtwebengine-opensource-src-5.6.0-beta-no-neon.patch
system-ffmpeg.patch)
md5sums=('6e7fb2be161c6db4d988a4f5b329672f'
'2a1610b34204102938a24154a52e5571'
'9d225d1bf83ea45dbf6556d30d35fcb8'
'123d4d0d7db7473649ff2b5650330cc4'
'9f79b14f7c5ff603c1fcd87f37a8904f')
prepare() {
mkdir -p build
# Hack to force using python2
mkdir -p bin
ln -s /usr/bin/python2 bin/python
# Fix opening some websites with recent NSS https://github.com/QupZilla/qupzilla/issues/1870 (KaOSx patch)
cd ${_pkgfqn}
# patch -p1 -i ../qt5-webengine-nss.patch
# Fix build with ICU 58 (gentoo)
patch -p1 -i "$srcdir"/qtwebengine-5.7.0-icu58.patch
if [[ $CARCH == "armv7h" ]]; then
patch -p0 -i ../qtwebengine-opensource-src-5.6.0-beta-no-neon.patch
patch -p1 -i ../system-ffmpeg.patch
fi
}
build() {
cd build
export PATH="$srcdir/bin:$PATH"
qmake WEBENGINE_CONFIG+="use_system_ffmpeg use_system_icu" ../${_pkgfqn}
make
}
package() {
cd build
make INSTALL_ROOT="$pkgdir" install
# Drop QMAKE_PRL_BUILD_DIR because reference the build dir
find "$pkgdir/usr/lib" -type f -name '*.prl' \
-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
install -Dm644 "$srcdir"/${_pkgfqn}/src/3rdparty/chromium/LICENSE "$pkgdir"/usr/share/licenses/${pkgname}/LICENSE.chromium
}
|