# Maintainer: Gabriel Souza Franco # Contributor: Antonio Rojas # Contributor: Felix Yan pkgname=python2-shiboken2 _qtver=5.12.1 pkgver=${_qtver/-/} pkgrel=1 arch=(x86_64) url='http://qt-project.org/' license=(GPL2 LGPL) pkgdesc='Generates bindings for C++ libraries using CPython source code' depends=(python2) makedepends=(clang llvm cmake libxslt "qt5-xmlpatterns>=${_qtver}") _pkgfqn=pyside-setup-everywhere-src-${_qtver} source=("http://download.qt.io/official_releases/QtForPython/pyside2/PySide2-$pkgver-src/${_pkgfqn}.tar.xz") sha256sums=('6e26b6240b97558b8bf3c97810e950ef4121a03a1ebdecfb649992a505f18059') build() { mkdir -p build cd build cmake ../${_pkgfqn}/sources/shiboken2 \ -DCMAKE_INSTALL_PREFIX=/usr \ -DBUILD_TESTS=OFF \ -DUSE_PYTHON_VERSION=2 make } package_python2-shiboken2() { cd build make DESTDIR="$pkgdir" install # Provided in shiboken rm -r "$pkgdir"/usr/{bin,include,lib/{cmake/*/Shiboken2Config{,Version}.cmake,pkgconfig},share} }