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

packager="tnut <tnut@nutyx.org>"
contributors="Rems, Greg"

makedepends=(llvm libxslt qtxmlpatterns python)

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

source=(https://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 \
    -DUSE_PYTHON_VERSION=3
  make
}

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