2016-06-21 05:05:28 +08:00
|
|
|
source ../qt5.conf
|
2016-03-17 22:35:48 +08:00
|
|
|
|
|
|
|
pkgname=qt5-webengine
|
2016-06-21 05:05:28 +08:00
|
|
|
pkgver=${QSubVersion}
|
2017-05-24 04:51:08 +08:00
|
|
|
pkgrel=5
|
2016-03-19 08:23:32 +08:00
|
|
|
arch=('x86_64')
|
2016-03-17 22:35:48 +08:00
|
|
|
url='http://qt-project.org/'
|
|
|
|
license=('GPL3' 'LGPL' 'FDL' 'custom')
|
|
|
|
pkgdesc='Provides support for web applications using the Chromium browser project'
|
2017-05-24 04:51:08 +08:00
|
|
|
depends=('qt5-webchannel' 'qt5-location' 'libxcomposite' 'libxrandr' 'pciutils' 'libxss' 'libvpx'
|
|
|
|
'libevent' 'libsrtp' 'snappy' 'nss' 'protobuf' 'libxslt' 'libxdamage' 'minizip' 'ffmpeg')
|
|
|
|
# namcap note: libxdamage is needed for nvidia users
|
|
|
|
makedepends=('python2' 'git' 'gperf' 'jsoncpp')
|
2016-06-21 05:05:28 +08:00
|
|
|
groups=('qt5')
|
|
|
|
options=('debug')
|
2017-03-13 04:34:13 +08:00
|
|
|
source=( $(getSrc ${pkgname})
|
2017-05-24 04:51:08 +08:00
|
|
|
qtbug-58488.patch::"https://github.com/qt/qtwebengine/commit/7e7dd262.patch"
|
|
|
|
qtbug-58488.patch::"https://github.com/qt/qtwebengine/commit/7e7dd262.patch"
|
|
|
|
qtbug-58381.patch::"https://github.com/qt/qtwebengine/commit/8e147ed3.patch"
|
|
|
|
qtbug-58515.patch::"https://github.com/qt/qtwebengine/commit/a6c6665d.patch"
|
|
|
|
qtbug-58673.patch::"https://github.com/qt/qtwebengine/commit/90501711.patch"
|
|
|
|
qtbug-58362.patch::"https://github.com/qt/qtwebengine/commit/31374ba9.patch"
|
|
|
|
qtbug-57778.patch::"https://github.com/qt/qtwebengine/commit/5c2cbfcc.patch")
|
2017-03-13 04:34:13 +08:00
|
|
|
md5sums=( $(getSum ${pkgname})
|
2017-05-24 04:51:08 +08:00
|
|
|
'3762cbdbc6a752e4d876e048e5e16de6'
|
|
|
|
'3762cbdbc6a752e4d876e048e5e16de6'
|
|
|
|
'951ac7549fff82f9d1d11e9bf50556ba'
|
|
|
|
'd5da5608285ad764f37fe196f9afe5a1'
|
|
|
|
'c7b5acd58319d23d769c19f42323e8ec'
|
|
|
|
'663f8454990de96fad4c8c78bcd6f819'
|
|
|
|
'849ab18980b0523405f0282c83b4a54c')
|
2016-03-19 08:23:32 +08:00
|
|
|
|
2016-03-17 22:35:48 +08:00
|
|
|
prepare() {
|
|
|
|
mkdir -p build
|
|
|
|
|
2016-06-21 05:05:28 +08:00
|
|
|
# Hack to force using python2
|
|
|
|
mkdir -p bin
|
|
|
|
ln -s /usr/bin/python2 bin/python
|
|
|
|
|
|
|
|
cd $(getPkgName ${pkgname})
|
|
|
|
|
2017-03-13 02:07:34 +08:00
|
|
|
# Prevent drop-down popups form stealing focus https://bugreports.qt.io/browse/QTBUG-58488
|
|
|
|
patch -p1 -i ../qtbug-58488.patch
|
2017-05-24 04:51:08 +08:00
|
|
|
|
|
|
|
# Backport some focus fixes
|
|
|
|
patch -p1 -i ../qtbug-58381.patch
|
|
|
|
patch -p1 -i ../qtbug-58515.patch
|
|
|
|
patch -p1 -i ../qtbug-58673.patch
|
|
|
|
|
|
|
|
# Fix IME support
|
|
|
|
patch -p1 -i ../qtbug-58362.patch
|
|
|
|
|
|
|
|
# Fix incorrectly overriding new and delete
|
|
|
|
patch -p1 -i ../qtbug-57778.patch
|
2016-03-17 22:35:48 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd build
|
|
|
|
|
2016-06-21 05:05:28 +08:00
|
|
|
export PATH="$srcdir/bin:$PATH"
|
2017-05-24 04:51:08 +08:00
|
|
|
|
|
|
|
export CFLAGS="$CFLAGS -fno-delete-null-pointer-checks"
|
|
|
|
export CXXFLAGS="${CXXFLAGS} -fno-delete-null-pointer-checks"
|
|
|
|
|
|
|
|
qmake-qt5 CONFIG+="proprietary-codecs" WEBENGINE_CONFIG+="use_proprietary_codecs use_system_ffmpeg" ../$(getPkgName ${pkgname})
|
2016-03-17 22:35:48 +08:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd build
|
|
|
|
make INSTALL_ROOT="$pkgdir" install
|
|
|
|
|
|
|
|
# Drop QMAKE_PRL_BUILD_DIR because reference the build dir
|
2016-06-21 05:05:28 +08:00
|
|
|
qtprlfix
|
2016-03-17 22:35:48 +08:00
|
|
|
|
|
|
|
install -d "$pkgdir"/usr/share/licenses
|
|
|
|
ln -s /usr/share/licenses/qt5-base "$pkgdir"/usr/share/licenses/${pkgname}
|
|
|
|
}
|