pyqt5: update to 5.15.10
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user