106 lines
2.8 KiB
Bash
106 lines
2.8 KiB
Bash
# Template file for 'python3-pyside2'
|
|
pkgname=python3-pyside2
|
|
version=5.14.1
|
|
revision=1
|
|
_pkgname="pyside-setup-opensource-src-${version}"
|
|
wrksrc="$_pkgname"
|
|
configure_args="-DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
|
|
-DBUILD_TESTS=OFF -DPYTHON_EXECUTABLE=/usr/bin/python"
|
|
hostmakedepends="cmake"
|
|
makedepends="python3-devel libshiboken2-devel qt5-devel
|
|
qt5-multimedia-devel qt5-tools-devel qt5-plugin-mysql qt5-plugin-odbc
|
|
qt5-plugin-pgsql qt5-plugin-sqlite qt5-plugin-tds qt5-x11extras-devel
|
|
qt5-xmlpatterns-devel qt5-location-devel qt5-declarative-devel qt5-scxml-devel
|
|
qt5-script-devel qt5-sensors-devel qt5-speech-devel qt5-charts-devel
|
|
qt5-svg-devel qt5-datavis3d-devel qt5-webchannel-devel qt5-websockets-devel
|
|
qt5-3d-devel qt5-gamepad-devel qt5-remoteobjects-devel"
|
|
depends="python3-shiboken2"
|
|
short_desc="Python3 bindings for the Qt5 toolkit"
|
|
maintainer="yopito <pierre.bourgin@free.fr>"
|
|
license="LGPL-3.0-or-later"
|
|
homepage="https://wiki.qt.io/Qt_for_Python"
|
|
distfiles="https://download.qt.io/official_releases/QtForPython/pyside2/PySide2-${version}-src/${_pkgname}.tar.xz"
|
|
checksum=41ce931695567639c92acb68a9d66ed5609f067011af9a94b53fc0d697ad1d1c
|
|
|
|
build_options="webengine"
|
|
desc_option_webengine="Build Qt5 WebEngine bindings"
|
|
|
|
if [ "$XBPS_TARGET_ENDIAN" = "le" ]; then
|
|
build_options_default="webengine"
|
|
fi
|
|
|
|
if [ "$build_option_webengine" ]; then
|
|
makedepends+=" qt5-webengine-devel"
|
|
fi
|
|
|
|
subpackages="libpyside2-python3-devel libpyside2-python3 libpyside-python3
|
|
python3-pyside python3-pyside-phonon python3-pyenet"
|
|
|
|
if [ "$build_option_webengine" ]; then
|
|
subpackages+=" python3-pyside2-webengine"
|
|
fi
|
|
|
|
do_build() {
|
|
[ ! -d build ] && mkdir build
|
|
pushd build
|
|
export CLANG_INSTALL_DIR=/usr
|
|
cmake ../sources/pyside2 ${configure_args}
|
|
make ${makejobs}
|
|
popd
|
|
}
|
|
|
|
do_install() {
|
|
make -C build DESTDIR=${DESTDIR} install
|
|
}
|
|
|
|
python3-pyside2-webengine_package() {
|
|
depends="python3-pyside2-${version}_${revision}"
|
|
short_desc+=" - WebEngine component"
|
|
pkg_install() {
|
|
vmove "${py3_sitelib}/PySide2/QtWebEngine*"
|
|
}
|
|
}
|
|
|
|
libpyside2-python3-devel_package() {
|
|
depends="${sourcepkg}-${version}_${revision}
|
|
libpyside2-python3-${version}_${revision}"
|
|
short_desc+=" - shared library (development files)"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/cmake
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/share
|
|
}
|
|
}
|
|
|
|
libpyside2-python3_package() {
|
|
short_desc+=" - shared library"
|
|
pkg_install() {
|
|
vmove "usr/lib/*.so.*"
|
|
}
|
|
}
|
|
|
|
libpyside-python3_package() {
|
|
short_desc+=" - transitional dummy package"
|
|
build_style=meta
|
|
archs=noarch
|
|
}
|
|
|
|
python3-pyside_package() {
|
|
short_desc+=" - transitional dummy package"
|
|
build_style=meta
|
|
archs=noarch
|
|
}
|
|
|
|
python3-pyside-phonon_package() {
|
|
short_desc+=" - transitional dummy package"
|
|
build_style=meta
|
|
archs=noarch
|
|
}
|
|
|
|
python3-pyenet_package() {
|
|
short_desc+=" - transitional dummy package"
|
|
build_style=meta
|
|
archs=noarch
|
|
}
|