pkgname=pyside6 _pkgname=pyside-setup-everywhere-src pkgver=6.8.0.2 _pkgver=6.8.0 pkgrel=1 pkgdesc="Plugin (front-end) for Generator Runner. It generates bindings for C++ libraries using CPython source code" arch=('x86_64') license=('LGPL') url="https://wiki.qt.io/Qt_for_Python" depends=('phonon-qt6' 'qt6-3d' 'qt6-connectivity' 'qt6-datavis3d' 'qt6-declarative' 'qt6-location' 'qt6-quick3d' 'qt6-svg' 'qt6-tools' 'qt6-websockets' 'qt6-multimedia' 'qt6-scxml' 'qt6-sensors' 'qt6-serialport' 'qt6-speech' 'qt6-webengine' 'shiboken6') # 'qt6-remoteobjects' 'qt6-charts' makedepends=('cmake' 'python3-sphinx' 'python3-setuptools' 'clang') #source=("git://code.qt.io/pyside/pyside-setup.git") source=("https://download.qt.io/official_releases/QtForPython/${pkgname}/PySide6-${pkgver}-src/${_pkgname}-${_pkgver}.tar.xz") sha256sums=('1a1a219a8f327e340d258275fad3a9f261b8f04bc57041747e73dd6ad252b4e1') prepare() { cd ${_pkgname}-${_pkgver} export CC=/usr/bin/clang export CXX=/usr/bin/clang++ #sed -i -e 's|import importlib|import importlib.machinery|' sources/shiboken2/libshiboken/embed/signature_bootstrap.py #sed -i -e 's|#ifndef Py_LIMITED_API|#if PY_VERSION_HEX < 0x03010000|' sources/shiboken2/libshiboken/pep384impl.cpp #patch -p1 -i ${srcdir}/qt6.7.patch } build() { cmake -B build -S ${_pkgname}-${_pkgver}/sources/pyside6 \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DBUILD_TESTS=OFF \ -DPYTHON_EXECUTABLE=/usr/bin/python3 cmake --build build } package() { DESTDIR=${pkgdir} cmake --install build }