From f20b00a2f92acd2c8dd83e3d2d4191ac11f057b5 Mon Sep 17 00:00:00 2001 From: yopito Date: Wed, 20 Feb 2019 19:04:19 +0100 Subject: [PATCH] New package: pyside2-tools 5.11.2 Co-authored-by: maxice8 --- srcpkgs/pyside2-tools/template | 37 ++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 srcpkgs/pyside2-tools/template diff --git a/srcpkgs/pyside2-tools/template b/srcpkgs/pyside2-tools/template new file mode 100644 index 00000000000..4ba0044452d --- /dev/null +++ b/srcpkgs/pyside2-tools/template @@ -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 " +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 +}