mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-12 01:44:38 +08:00
49 lines
1.6 KiB
Bash
49 lines
1.6 KiB
Bash
# Contributor: Felix Yan <felixonmars@archlinux.org>
|
|
# Contributor: Andrea Scarpino <andrea@archlinux.org>
|
|
|
|
pkgname=qt5-webengine
|
|
_qtver=5.6.0
|
|
pkgver=${_qtver/-/}
|
|
pkgrel=7
|
|
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' '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')
|
|
_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')
|
|
|
|
|
|
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
|
|
|
|
#export PATH="$srcdir/bin:$PATH"
|
|
qmake-qt5 WEBENGINE_CONFIG+=use_proprietary_codecs WEBENGINE_CONFIG+=use_system_ffmpeg ../${_pkgfqn}
|
|
|
|
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}
|
|
}
|