core/qt5-webengine/PKGBUILD
2016-12-20 23:27:38 +00:00

58 lines
1.8 KiB
Bash

source ../qt5.conf
pkgname=qt5-webengine
pkgver=${QSubVersion}
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})
qt5-webengine-nss.patch
qt5-webengine-fno-delete-null-pointer-checks.patch qt5-webengine-fno-delete-null-pointer-checks-2.patch)
md5sums=( $(getSum ${pkgname})
'2a1610b34204102938a24154a52e5571'
'5671a16fef65152928789bffd1f7cf24'
'8145ce05fb86e762f012ca1b56f718fe')
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 $(getPkgName ${pkgname})
patch -p1 -i ../qt5-webengine-nss.patch
# Workaround for v8 segfaults with GCC 6
patch -p1 -i "$srcdir"/qt5-webengine-fno-delete-null-pointer-checks.patch
cd src/3rdparty
patch -p1 -i "$srcdir"/qt5-webengine-fno-delete-null-pointer-checks-2.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}
}