core/qt5-webengine/PKGBUILD

56 lines
1.6 KiB
Bash
Raw Normal View History

source ../qt5.conf
pkgname=qt5-webengine
pkgver=${QSubVersion}
2016-12-21 07:27:38 +08:00
pkgrel=1
arch=('x86_64')
url='http://qt-project.org/'
license=('GPL3' 'LGPL' 'FDL' 'custom')
pkgdesc='Provides support for web applications using the Chromium browser project'
depends=('qt5-webchannel' 'qt5-location' 'libxcomposite' 'libxrandr' 'libxtst' 'libxcursor' 'libpulse' 'pciutils' 'libxss' 'libvpx' 'opus'
'libevent' 'libsrtp' 'jsoncpp' 'libwebp' 'snappy' 'nss' 'libxml2' 'libxslt' 'protobuf' 'libproxy') # minizip
makedepends=('python2' 'git' 'gperf')
groups=('qt5')
options=('debug')
source=( $(getSrc ${pkgname})
2017-03-13 02:07:34 +08:00
qtwebengine-5.7.0-icu58.patch
qtbug-58488.patch::"https://github.com/qt/qtwebengine/commit/7e7dd262.patch")
md5sums=( $(getSum ${pkgname})
2017-03-13 02:07:34 +08:00
'9d225d1bf83ea45dbf6556d30d35fcb8'
'3762cbdbc6a752e4d876e048e5e16de6')
prepare() {
mkdir -p build
# 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
# Fix build with ICU 58 (gentoo)
#patch -p1 -i "$srcdir"/qtwebengine-5.7.0-icu58.patch
# Prevent drop-down popups form stealing focus https://bugreports.qt.io/browse/QTBUG-58488
patch -p1 -i ../qtbug-58488.patch
}
build() {
cd build
export PATH="$srcdir/bin:$PATH"
qmake-qt5 WEBENGINE_CONFIG+=use_proprietary_codecs ../$(getPkgName ${pkgname})
make
}
package() {
cd build
make INSTALL_ROOT="$pkgdir" install
# Drop QMAKE_PRL_BUILD_DIR because reference the build dir
qtprlfix
install -d "$pkgdir"/usr/share/licenses
ln -s /usr/share/licenses/qt5-base "$pkgdir"/usr/share/licenses/${pkgname}
}