makedepends=(cmake llvm libxslt qtxmlpatterns python-setuptools)

description="Generates bindings for C++ libraries using CPython source code"
url="http://qt-project.org/"

packager="Great-OS Team"
maintainer="Great-OS Team"

name=shiboken2
version=5.15.13
release=7

_qtver=$version
_pkgfqn=pyside-setup-opensource-src-${_qtver}

source=(http://download.qt.io/official_releases/QtForPython/pyside2/PySide2-$version-src/${_pkgfqn}.tar.xz)

build() {
  mkdir -pv build && cd build

  cmake ../${_pkgfqn}/sources/shiboken2 \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DBUILD_TESTS=OFF \
        -DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
        -DUSE_PYTHON_VERSION=3

  make
}

package() {
  make -C build DESTDIR="$PKG" install
}
