backports/py3-qt6: new aports

This commit is contained in:
Antoine Martin 2024-01-18 15:03:29 -05:00
parent aef6eb387e
commit 5c8d8ccd4e
Signed by: forge
GPG key ID: D62A472A4AA7D541

View file

@ -0,0 +1,59 @@
# Contributor: Rosie K Languet <rkl@rosiesworkshop.net>
# Maintainer: Rosie K Languet <rkl@rosiesworkshop.net>
pkgname=py3-qt6
pkgver=6.5.0
pkgrel=1
pkgdesc="A set of Python 3 bindings for the Qt toolkit"
url="https://www.riverbankcomputing.com/software/pyqt/"
arch="all !riscv64" # no bindings to be built
license="GPL-3.0-only"
depends="
py3-pyqt6-sip
python3
"
makedepends="
libx11-dev
py3-dbus-dev
py3-opengl
py3-pyqt-builder
py3-sip
python3-dev
qt6-qtbase-dev
qt6-qtconnectivity-dev
qt6-qtdeclarative-dev
qt6-qtmultimedia-dev
qt6-qtserialport-dev
qt6-qtsvg-dev
qt6-qttools-dev
qt6-qtwebchannel-dev
qt6-qtwebsockets-dev
"
subpackages="$pkgname-pyc"
source="https://pypi.python.org/packages/source/P/PyQt6/PyQt6-$pkgver.tar.gz"
builddir="$srcdir/PyQt6-$pkgver"
build() {
export CFLAGS="$CFLAGS -O2 -flto=auto"
export CXXFLAGS="$CXXFLAGS -O2 -flto=auto"
sip-build \
--confirm-license \
--qmake /usr/lib/qt6/bin/qmake \
--api-dir /usr/share/qt6/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="
c73d4c253245d2ccc776544bc651d47ea67067f57b49c3f820100701af4d79385ef4cabe9f65098f35daeba5f2921a566606be4f237e567f6f56360cc760f548 PyQt6-6.5.0.tar.gz
"