38 lines
1.1 KiB
Bash
38 lines
1.1 KiB
Bash
|
# 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
|
||
|
}
|