# Maintainer: Antonio Rojas <arojas@archlinux.org>

pkgbase=pyqt6-graphs
pkgname=(python-pyqt6-graphs)
pkgver=6.11.0
pkgrel=1
pkgdesc='Python bindings for QtGraphs'
arch=(x86_64)
url='https://www.riverbankcomputing.com/software/pyqtgraphs/intro'
license=(GPL3)
groups=(pyqt6)
depends=(glibc
         libstdc++
         python
         python-pyqt6
         qt6-base
         qt6-graphs
         qt6-quick3d)
makedepends=(pyqt-builder
             sip)
source=(https://pypi.python.org/packages/source/P/PyQt6-Graphs/pyqt6_graphs-$pkgver.tar.gz)
sha256sums=('f4988c9c356b13ec945434e02bc44d9cb8bf441ef477c39456bfeb0bb2d3a68b')

build() {
  cd pyqt6_graphs-$pkgver
  sip-build \
    --no-make \
    --qmake=/usr/bin/qmake6 \
    --pep484-pyi
  cd build
  make
}

package_python-pyqt6-graphs(){
  cd pyqt6_graphs-$pkgver/build
  make INSTALL_ROOT="$pkgdir" install
}
