core/qt5-webengine/PKGBUILD

52 lines
1.6 KiB
Bash

# Contributions from Arch:
# Contributor: Felix Yan <felixonmars@archlinux.org>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
pkgname=qt5-webengine
_qtver=5.6.1
pkgver=${_qtver/-/}
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' 'icu' 'ffmpeg' 'zlib')
makedepends=('python2' 'git' 'gperf' 'ninja' 're2c')
_pkgfqn="${pkgname/5-/}-opensource-src-${_qtver}"
source=("http://download.qt.io/official_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz")
md5sums=('35f168743638b07157e20af0586f39a2')
prepare() {
mkdir -p build
# patch here
}
build() {
cd build
#export PATH="$srcdir/bin:$PATH"
qmake-qt5 WEBENGINE_CONFIG+=use_proprietary_codecs \
WEBENGINE_CONFIG+=use_system_ffmpeg \
WEBENGINE_CONFIG+=use_system_icu \
WEBENGINE_CONFIG+=use_system_srtp \
WEBENGINE_CONFIG+=use_system_zlib \
../${_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}
}