2016-03-28 16:35:15 +08:00
|
|
|
# Contributions from Arch:
|
2016-03-17 22:35:48 +08:00
|
|
|
# Contributor: Felix Yan <felixonmars@archlinux.org>
|
|
|
|
# Contributor: Andrea Scarpino <andrea@archlinux.org>
|
|
|
|
|
|
|
|
pkgname=qt5-webengine
|
|
|
|
_qtver=5.6.0
|
|
|
|
pkgver=${_qtver/-/}
|
2016-05-27 04:34:19 +08:00
|
|
|
pkgrel=9
|
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'
|
2016-03-28 16:35:15 +08:00
|
|
|
depends=('qt5-webchannel' 'qt5-location' 'libxcomposite' 'libxrandr' 'libxtst' 'libxcursor' 'libpulse' 'pciutils' 'libxss'
|
|
|
|
'libvpx' 'opus' 'libevent' 'libsrtp' 'jsoncpp' 'libwebp' 'snappy' 'nss' 'libxml2' 'libxslt' 'icu' 'ffmpeg' 'zlib')
|
|
|
|
makedepends=('python2' 'git' 'gperf' 'ninja' 're2c')
|
2016-03-17 22:35:48 +08:00
|
|
|
_pkgfqn="${pkgname/5-/}-opensource-src-${_qtver}"
|
|
|
|
source=("http://download.qt.io/official_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz" qt5-webengine-nss.patch)
|
|
|
|
md5sums=('a8be84d642a78724d84b27c20adee14c'
|
|
|
|
'26f5e1e96be524ccad564dc2fdb9766c')
|
|
|
|
|
2016-03-19 08:23:32 +08:00
|
|
|
|
2016-03-17 22:35:48 +08:00
|
|
|
prepare() {
|
|
|
|
mkdir -p build
|
|
|
|
|
|
|
|
# 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
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd build
|
|
|
|
|
2016-03-19 08:23:32 +08:00
|
|
|
#export PATH="$srcdir/bin:$PATH"
|
|
|
|
qmake-qt5 WEBENGINE_CONFIG+=use_proprietary_codecs WEBENGINE_CONFIG+=use_system_ffmpeg ../${_pkgfqn}
|
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
|
|
|
|
find "$pkgdir/usr/lib" -type f -name '*.prl' \
|
|
|
|
-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
|
|
|
|
|
|
|
|
install -d "$pkgdir"/usr/share/licenses
|
|
|
|
ln -s /usr/share/licenses/qt5-base "$pkgdir"/usr/share/licenses/${pkgname}
|
|
|
|
}
|