# Contributor: Leo # Maintainer: Drew DeVault pkgname=shiboken2 _pkgname=pyside-setup-everywhere-src pkgver=5.12.5 pkgrel=1 pkgdesc="CPython bindings generator for C++ libraries" url="https://wiki.qt.io/Qt_for_Python/Shiboken" arch="all" license="GPL-2.0-or-later" depends_dev="python3-dev" makedepends=" cmake $depends_dev qt5-qtbase-dev qt5-qtxmlpatterns-dev clang-dev libxml2-dev libxslt-dev py3-numpy-dev " subpackages="$pkgname-doc lib$pkgname:libs lib$pkgname-dev py3-$pkgname:py3" source=" https://download.qt.io/official_releases/QtForPython/pyside2/PySide2-$pkgver-src/$_pkgname-$pkgver.tar.xz musl-execinfo.patch " builddir="$srcdir/$_pkgname-$pkgver" provides="shiboken=$pkgver-r$pkgrel" # For backward compatibility replaces="shiboken" # For backward compatibility prepare() { mkdir build default_prepare } build() { cd build export CLANG_INSTALL_DIR=/usr cmake ../sources/shiboken2 \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release \ -DBUILD_TESTS=OFF \ -DUSE_PYTHON_VERSION=3 make } package() { make -C build DESTDIR="$pkgdir" install } libs() { license="LGPL-2.1-or-later" default_libs } dev() { license="LGPL-2.1-or-later" default_dev provides="shiboken-dev=$pkgver-r$pkgrel" replaces="shiboken-dev" } py3() { license="LGPL-2.1-or-later" depends="" pkgdesc="Python3 shiboken bindings" mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/python3* "$subpkgdir"/usr/lib provides="py3-shiboken=$pkgver-r$pkgrel" # For backward compatibility replaces="py3-shiboken" # For backward compatibility } sha512sums="3c0c5b1d701e8085ff3b39effdd2c4dc042f6385ed8a222264d36b2052cdb6fde6a44e9b87c94001890c8b4e4c0f2ed6e81ab0edbdba977edfdc98fefe32809d pyside-setup-everywhere-src-5.12.5.tar.xz c894721b731e2f3819c5f985a6f9dc448e843c36d052143e34c4a7ccd7dc4599c15e0bf108a8362a9771c107bf45e1eff8d9d19a5d50318998abf10bfb7f3650 musl-execinfo.patch"