# Description: Python bindings for QT6WebEngine
# URL: https://www.riverbankcomputing.com/software/pyqtwebengine/intro
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: python3-pyqt6 qt6-webengine python3-pyqt-builder sip python3-ply

name=python3-pyqt6-webengine
version=6.5.0
release=1
source=(https://pypi.python.org/packages/source/P/PyQt6-WebEngine/PyQt6_WebEngine-$version.tar.gz)

build() {
  ls /usr/lib/python*/site-packages/PyQt6/QtWebChannel.*so || (echo "rebuild python3-pyqt6"; exit 1)
  cd PyQt6_WebEngine-$version

  sip-build \
    --no-make \
    --qmake=/usr/lib/qt6/bin/qmake6 \
    --concatenate 1
  cd build
  make
  make INSTALL_ROOT=$PKG install

  /usr/bin/python3 -m compileall -d / $PKG/usr/lib
  /usr/bin/python3 -O -m compileall -d / $PKG/usr/lib
}
