# Description: Python bindings for the QT6 toolkit
# URL: https://www.riverbankcomputing.com/software/pyqt/
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: python3-pyopengl python3-pyqt-builder python3-pyqt6-sip qt6-base
# Optional: dbus-python3 qt6-connectivity qt6-declarative qt6-location qt6-multimedia qt6-quick3d qt6-remoteobjects qt6-sensors qt6-serialport qt6-svg qt6-tools qt6-webchannel qt6-websockets

name=python3-pyqt6
version=6.11.0
release=1
source=(https://pypi.python.org/packages/source/p/pyqt6/pyqt6-$version.tar.gz)

build() {
  cd pyqt6-$version

  sip-build \
    --confirm-license \
    --no-make \
    --qmake=/usr/lib/qt6/bin/qmake6 \
    --api-dir /usr/share/qt6/qsci/api/python \
    --pep484-pyi
  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
}
