New package: pyside2-tools 5.11.2

Co-authored-by: maxice8 <thinkabit.ukim@gmail.com>
This commit is contained in:
yopito 2019-02-20 19:04:19 +01:00 committed by maxice8
parent 73916f1c49
commit f20b00a2f9
No known key found for this signature in database
GPG key ID: 543B9D4F4299F06B

View file

@ -0,0 +1,37 @@
# Template file for 'pyside2-tools'
pkgname=pyside2-tools
version=5.11.2
revision=1
_pkgname="pyside-setup-everywhere-src-${version}"
wrksrc="$_pkgname"
configure_args="-DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
-DBUILD_TESTS=OFF"
pycompile_module="pyside2uic"
hostmakedepends="cmake"
makedepends="python3-devel libshiboken2-devel qt5-devel
libpyside2-python3-devel"
depends="python3"
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=18f572f1f832e476083d30fccabab167450f2a8cbe5cd9c6e6e4fa078ccb86c2
pre_build() {
# Fix inconsistent naming of .so and .cmake files
sed -i "/get_python_extension_suffix()/d" sources/pyside2-tools/CMakeLists.txt
}
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
}