# Depends on: qtbase qtwebchannel qtlocation xorg-libxcomposite xorg-libxrandr pciutils libvpx libevent snappy nss protobuf libxslt ffmpeg git gperf icu zlib libwebp xorg-libxscrnsaver

description="Provides support for web applications using the Chromium browser project"
url="http://qt-project.org/"
packager="tnut <tnut@nutyx.org>"
contributors="Pierre B"

name=qtwebengine
version=5.11.3
release=2

_name="${name}-everywhere-src"

source=(https://download.qt.io/official_releases/qt/5.11/$version/submodules/${_name}-${version}.tar.xz)

build() {
  cd ${_name}-${version}
  mkdir build
  cd build 
  qmake WEBENGINE_CONFIG+="use_proprietary_codecs" ../ 
  make
  make INSTALL_ROOT=$PKG install

# Obsolets libs
rm $PKG/usr/lib/libQt5WebEngine.la
rm $PKG/usr/lib/libQt5WebEngineCore.la
rm $PKG/usr/lib/libQt5WebEngineWidgets.la

}
