PKGBUILDs/extra/qt5-webengine/PKGBUILD

99 lines
3.5 KiB
Bash
Raw Normal View History

2016-07-10 03:16:51 +00:00
# $Id: PKGBUILD 240297 2015-06-03 10:22:03Z fyan $
# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - patch to disable neon
2016-12-04 19:26:56 +00:00
# - patch to use system ffmpeg
2016-07-10 03:16:51 +00:00
buildarch=12
2017-04-30 02:14:10 +00:00
highmem=1
2016-07-10 03:16:51 +00:00
pkgname=qt5-webengine
2017-01-29 00:17:24 +00:00
_qtver=5.8.0
2016-07-10 03:16:51 +00:00
pkgver=${_qtver/-/}
2017-05-19 18:02:32 +00:00
pkgrel=9
2016-07-10 03:16:51 +00:00
arch=('i686' 'x86_64')
url='http://qt-project.org/'
2017-04-26 19:59:05 +00:00
license=('LGPL3' 'LGPL2.1' 'BSD')
2016-07-10 03:16:51 +00:00
pkgdesc='Provides support for web applications using the Chromium browser project'
2017-02-25 14:24:07 +00: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
2016-10-10 12:41:29 +00:00
makedepends=('python2' 'git' 'gperf' 'jsoncpp')
2016-07-10 03:16:51 +00:00
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-opensource-src-5.6.0-beta-no-neon.patch
2017-04-29 16:16:31 +00:00
qtwebengine-5.7.0-icu58.patch
qtbug-58488.patch::"https://github.com/qt/qtwebengine/commit/7e7dd262.patch"
2017-03-16 12:22:09 +00:00
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"
2017-03-31 12:28:38 +00:00
qtbug-58362.patch::"https://github.com/qt/qtwebengine/commit/31374ba9.patch"
2017-04-26 19:59:05 +00:00
qtbug-57778.patch::"https://github.com/qt/qtwebengine/commit/5c2cbfcc.patch"
2016-07-10 03:16:51 +00:00
system-ffmpeg.patch)
2017-01-29 00:17:24 +00:00
md5sums=('6e7fb2be161c6db4d988a4f5b329672f'
2016-07-10 03:16:51 +00:00
'2a1610b34204102938a24154a52e5571'
2016-12-17 16:13:01 +00:00
'123d4d0d7db7473649ff2b5650330cc4'
2017-01-29 00:17:24 +00:00
'9d225d1bf83ea45dbf6556d30d35fcb8'
2017-02-25 14:24:07 +00:00
'3762cbdbc6a752e4d876e048e5e16de6'
2017-03-16 12:22:09 +00:00
'951ac7549fff82f9d1d11e9bf50556ba'
'd5da5608285ad764f37fe196f9afe5a1'
'c7b5acd58319d23d769c19f42323e8ec'
2017-03-31 12:28:38 +00:00
'663f8454990de96fad4c8c78bcd6f819'
2017-04-26 19:59:05 +00:00
'849ab18980b0523405f0282c83b4a54c'
2016-07-10 03:16:51 +00:00
'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
2016-12-04 19:26:56 +00:00
# Fix build with ICU 58 (gentoo)
2017-04-29 16:16:31 +00:00
#patch -p1 -i "$srcdir"/qtwebengine-5.7.0-icu58.patch
2016-12-04 19:26:56 +00:00
2017-02-25 14:24:07 +00:00
# Prevent drop-down popups form stealing focus https://bugreports.qt.io/browse/QTBUG-58488
patch -p1 -i ../qtbug-58488.patch
2017-03-16 12:22:09 +00:00
# Backport some focus fixes
patch -p1 -i ../qtbug-58381.patch
patch -p1 -i ../qtbug-58515.patch
2017-04-26 19:59:05 +00:00
patch -p1 -i ../qtbug-58673.patch
2017-03-16 12:22:09 +00:00
2017-03-31 12:28:38 +00:00
# Fix IME support
patch -p1 -i ../qtbug-58362.patch
2017-04-26 19:59:05 +00:00
# Fix incorrectly overriding new and delete
patch -p1 -i ../qtbug-57778.patch
2016-12-17 16:13:01 +00:00
[[ $CARCH == "armv7h" ]] && patch -p0 -i ../qtwebengine-opensource-src-5.6.0-beta-no-neon.patch
2016-07-10 03:16:51 +00:00
patch -p1 -i ../system-ffmpeg.patch
}
build() {
cd build
export PATH="$srcdir/bin:$PATH"
2017-04-29 16:16:31 +00:00
qmake CONFIG+="proprietary-codecs" WEBENGINE_CONFIG+="use_proprietary_codecs use_system_ffmpeg" ../${_pkgfqn}
2016-07-10 03:16:51 +00:00
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' {} \;
2017-04-26 19:59:05 +00:00
install -Dm644 "$srcdir"/${_pkgfqn}/src/3rdparty/chromium/LICENSE "$pkgdir"/usr/share/licenses/${pkgname}/LICENSE.chromium
2016-07-10 03:16:51 +00:00
}