From c3fdfd461bffbf35410b4b09ca7d69a6cfb117d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D9=85=D9=87=D8=AF=D9=8A=20=D8=B4=D9=8A=D9=86=D9=88=D9=86?= =?UTF-8?q?=20=28Mehdi=20Chinoune=29?= Date: Sun, 15 Oct 2023 07:36:29 +0100 Subject: [PATCH] pyqt5: update to 5.15.10 --- mingw-w64-pyqt5/PKGBUILD | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/mingw-w64-pyqt5/PKGBUILD b/mingw-w64-pyqt5/PKGBUILD index cf7a1fbb58..a94d7382be 100644 --- a/mingw-w64-pyqt5/PKGBUILD +++ b/mingw-w64-pyqt5/PKGBUILD @@ -8,15 +8,15 @@ conflicts=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}" "${MINGW_PACKAGE_PREFIX}-${_realname}-common") replaces=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}" "${MINGW_PACKAGE_PREFIX}-${_realname}-common") -pkgver=5.15.9 -pkgrel=2 +pkgver=5.15.10 +pkgrel=1 pkgdesc="Qt5 bindings for Python (mingw-w64)" arch=('any') mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') msys2_references=( 'pypi: PyQt5' ) -license=('GPL') +license=('spdx:GPL-3.0-or-later') url="https://riverbankcomputing.com/software/pyqt" depends=("${MINGW_PACKAGE_PREFIX}-python" "${MINGW_PACKAGE_PREFIX}-pyqt5-sip" @@ -58,20 +58,22 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-cc" "${MINGW_PACKAGE_PREFIX}-qt5-winextras" "${MINGW_PACKAGE_PREFIX}-qt5-xmlpatterns" $([[ ${MINGW_PACKAGE_PREFIX} == *-clang-aarch64* ]] || echo "${MINGW_PACKAGE_PREFIX}-qtwebkit")) -options=('strip' 'staticlibs') source=(https://pypi.python.org/packages/source/P/PyQt5/PyQt5-${pkgver}.tar.gz 001-configure-fix.patch) -sha256sums=('dc41e8401a90dc3e2b692b411bd5492ab559ae27a27424eed4bd3915564ec4c0' +sha256sums=('d46b7804b1b10a4ff91753f8113e5b5580d2b4462f3226288e2d84497334898a' 'd68f49a58a410a6c802e016dfeb59585b7b994a63f4e94da52aebe01a8d5c28a') prepare() { cd PyQt5-${pkgver} patch -p1 -i ${srcdir}/001-configure-fix.patch + + cd "${srcdir}" + rm -rf python-build-${MSYSTEM} | true + cp -r PyQt5-${pkgver} python-build-${MSYSTEM} } build() { - [[ -d python-build-${MSYSTEM} ]] && rm -rf python-build-${MSYSTEM} - cp -r PyQt5-${pkgver} python-build-${MSYSTEM} && cd python-build-${MSYSTEM} + cd python-build-${MSYSTEM} MSYS2_ARG_CONV_EXCL="--api-dir=;" \ ${MINGW_PREFIX}/bin/sip-build \ @@ -95,6 +97,7 @@ package(){ make DESTDIR="${pkgdir}" INSTALL_ROOT="${pkgdir}" install # compile Python bytecode - ${MINGW_PREFIX}/bin/python -m compileall -d / "$pkgdir"${MINGW_PREFIX}/lib - ${MINGW_PREFIX}/bin/python -O -m compileall -d / "$pkgdir"${MINGW_PREFIX}/lib + ${MINGW_PREFIX}/bin/python -m compileall -o 0 -o 1 -d / "$pkgdir"${MINGW_PREFIX}/lib + + install -Dm644 ../LICENSE "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/LICENSE" }