34 lines
1.1 KiB
Bash
34 lines
1.1 KiB
Bash
# Template file for 'pyside2-tools'
|
|
# XXX keep pyside2-tools version 5.13.2 to support Qt 5.13.2:
|
|
# pyside2-tools 5.14 rely on rcc and ui tools provided by Qt 5.14
|
|
pkgname=pyside2-tools
|
|
version=5.13.2
|
|
revision=1
|
|
_pkgname="pyside-setup-opensource-src-${version}"
|
|
wrksrc="$_pkgname"
|
|
configure_args="-DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
|
|
-DBUILD_TESTS=OFF"
|
|
hostmakedepends="cmake python3-devel"
|
|
makedepends="python3-devel libshiboken2-devel qt5-devel
|
|
libpyside2-python3-devel"
|
|
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/Shiboken"
|
|
distfiles="https://download.qt.io/official_releases/QtForPython/pyside2/PySide2-${version}-src/${_pkgname}.tar.xz"
|
|
checksum=3e255d64df08880d0281ebe86009d5ea45f24332b308954d967c33995f75e543
|
|
python_version=3
|
|
|
|
do_build() {
|
|
[ ! -d build ] && mkdir build
|
|
pushd build
|
|
export CLANG_INSTALL_DIR=/usr
|
|
cmake ../sources/pyside2-tools ${configure_args}
|
|
make ${makejobs}
|
|
popd
|
|
}
|
|
|
|
do_install() {
|
|
make -C build DESTDIR=${DESTDIR} install
|
|
}
|