# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=py3-qt5 pkgver=5.15.9 pkgrel=3 pkgdesc="A set of Python 3 bindings for the Qt toolkit" url="https://www.riverbankcomputing.com/software/pyqt/" arch="all" license="GPL-3.0-only" depends=" py3-pyqt5-sip python3 " makedepends=" libx11-dev py3-dbus-dev py3-opengl py3-pyqt-builder py3-sip python3-dev qt5-qtbase-dev qt5-qtconnectivity-dev qt5-qtdeclarative-dev qt5-qtmultimedia-dev qt5-qtserialport-dev qt5-qtsvg-dev qt5-qttools-dev qt5-qtwebchannel-dev qt5-qtwebsockets-dev qt5-qtx11extras-dev " subpackages="$pkgname-pyc" source="https://pypi.python.org/packages/source/P/PyQt5/PyQt5-$pkgver.tar.gz" builddir="$srcdir/PyQt5-$pkgver" build() { export CFLAGS="$CFLAGS -O2 -flto=auto" export CXXFLAGS="$CXXFLAGS -O2 -flto=auto" sip-build \ --confirm-license \ --qmake /usr/lib/qt5/bin/qmake \ --api-dir /usr/share/qt5/qsci/api/python \ --pep484-pyi \ --no-make make -C build } check() { make -C build check } package() { make DESTDIR="$pkgdir" INSTALL_ROOT="$pkgdir" -C build install -j1 python3 -m compileall -j 0 "$pkgdir"/usr/lib/python3* } sha512sums=" 1c07d93aefe1c24e80851eb4631b80a99e7ba06e823181325456edb90285d3d22417a9f7d4c3ff9c6195bd801e7dc2bbabf0587af844a5e4b0a410c4611d119e PyQt5-5.15.9.tar.gz "