52 lines
1.4 KiB
Bash
52 lines
1.4 KiB
Bash
# Template file for 'shiboken2'
|
|
pkgname=shiboken2
|
|
version=5.15.5
|
|
revision=2
|
|
_pkgname="pyside-setup-opensource-src-${version}"
|
|
build_wrksrc="sources/shiboken2"
|
|
build_style=cmake
|
|
hostmakedepends="cmake python3-devel"
|
|
makedepends="python3-devel qt5-devel qt5-xmlpatterns-devel clang libxml2-devel
|
|
libxslt-devel python3-numpy"
|
|
depends="clang"
|
|
short_desc="Python binding generator of Qt5 C++ API"
|
|
maintainer="yopito <pierre.bourgin@free.fr>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://wiki.qt.io/Qt_for_Python/Shiboken"
|
|
distfiles="https://download.qt.io/official_releases/QtForPython/pyside2/PySide2-${version}-src/${_pkgname}.tar.xz"
|
|
checksum=3920a4fb353300260c9bc46ff70f1fb975c5e7efa22e9d51222588928ce19b33
|
|
|
|
python_version=3
|
|
export CLANG_INSTALL_DIR=${XBPS_CROSS_BASE}/usr
|
|
|
|
if [ ${CROSS_BUILD} ]; then
|
|
hostmakedepends+=" qt5-qmake qt5-host-tools shiboken2"
|
|
fi
|
|
|
|
libshiboken2-devel_package() {
|
|
depends="${sourcepkg}-${version}_${revision}
|
|
libshiboken2-${version}_${revision} python3-shiboken2-${version}_${revision}"
|
|
short_desc+=" - common development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/cmake
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|
|
|
|
libshiboken2_package() {
|
|
short_desc="Python3 shiboken2 bindings - shared library"
|
|
pkg_install() {
|
|
vmove "usr/lib/*.so.*"
|
|
}
|
|
}
|
|
|
|
python3-shiboken2_package() {
|
|
short_desc="Python3 shiboken2 bindings"
|
|
depends="python3"
|
|
pkg_install() {
|
|
vmove ${py3_sitelib}
|
|
}
|
|
}
|