# Description: Python bindings for the QT6 toolkit
# URL: https://riverbankcomputing.com/software/pyqt/intro
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: python3-opengl python3-packaging python3-ply python3-pyqt-builder python3-pyqt6-sip python3-tomli qt6-base sip
# 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.5.2
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
}
