Skip to content

Commit

Permalink
pyside6: Update to 6.8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
lazka committed Feb 2, 2025
1 parent ce45276 commit de9375c
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions mingw-w64-pyside6/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pkgbase=mingw-w64-${_realname}
pkgname=(${MINGW_PACKAGE_PREFIX}-shiboken6
${MINGW_PACKAGE_PREFIX}-${_realname}
${MINGW_PACKAGE_PREFIX}-${_realname}-tools)
pkgver=6.8.1.1
pkgver=6.8.2
pkgrel=1
pkgdesc="Enables the use of Qt6 APIs in Python applications (mingw-w64)"
arch=('any')
Expand Down Expand Up @@ -52,15 +52,15 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-cc"
"${MINGW_PACKAGE_PREFIX}-qt6-websockets"
"${MINGW_PACKAGE_PREFIX}-vulkan-headers")
_pkgfn=pyside-setup-everywhere-src-${pkgver}
source=(https://download.qt.io/official_releases/QtForPython/pyside6/PySide6-${pkgver%.*}-src/${_pkgfn}.tar.xz
source=(https://download.qt.io/official_releases/QtForPython/pyside6/PySide6-${pkgver}-src/${_pkgfn}.tar.xz
001-fix-building-on-mingw.patch
002-fix-build-qtexampleicons.patch)
sha256sums=('e1f198f0a9f6f0e694e3b44406166834e27cffa3f23c5a439c934e5c4faba468'
sha256sums=('8422e9aa403f4119e3192853e9b0cfa09e57e3e0a1a3393e7fdf394179c112f8'
'5f71b618e0ad687e9282fa4b8c3815beaf69b78666516bfce57cb039822f4ac6'
'ad762d906e5e736b87e8fe92efd42045fe51206e6b6845e37d298a15a53ccfa3')

prepare() {
cd "${srcdir}"/${_pkgfn%.*}
cd "${srcdir}"/${_pkgfn}
patch -p1 -i "${srcdir}"/001-fix-building-on-mingw.patch
patch -p1 -i "${srcdir}"/002-fix-build-qtexampleicons.patch
}
Expand Down Expand Up @@ -88,7 +88,7 @@ build() {
-DPython_EXECUTABLE=${MINGW_PREFIX}/bin/python \
-DNUMPY_INCLUDE_DIR=${MINGW_PREFIX}/include/python${_pyver}/numpy/_core/include \
-DSKIP_MODULES=DBus \
../${_pkgfn%.*}
../${_pkgfn}

PYTHONPATH="${srcdir}"/build-${MSYSTEM}/sources \
${MINGW_PREFIX}/bin/cmake --build .
Expand All @@ -104,7 +104,7 @@ package_shiboken6() {

DESTDIR="${pkgdir}" ${MINGW_PREFIX}/bin/cmake --install build-${MSYSTEM}/sources/shiboken6

install -Dm644 ${_pkgfn%.*}/sources/shiboken6/COPYING \
install -Dm644 ${_pkgfn}/sources/shiboken6/COPYING \
"$pkgdir"${MINGW_PREFIX}/share/licenses/shiboken6/LICENSE

# Fix *.pc files
Expand All @@ -117,7 +117,7 @@ package_shiboken6() {
done

# Install egg-info
cd "${srcdir}"/${_pkgfn%.*}
cd "${srcdir}"/${_pkgfn}
${MINGW_PREFIX}/bin/python setup.py egg_info --build-type=shiboken6
${MINGW_PREFIX}/bin/python setup.py egg_info --build-type=shiboken6-generator
_pythonpath=`${MINGW_PREFIX}/bin/python -c "from sysconfig import get_path; print(get_path('platlib'))"`
Expand Down Expand Up @@ -157,12 +157,12 @@ package_pyside6() {

DESTDIR="${pkgdir}" ${MINGW_PREFIX}/bin/cmake --install build-${MSYSTEM}/sources/pyside6

install -Dm644 ${_pkgfn%.*}/sources/pyside6/COPYING \
install -Dm644 ${_pkgfn}/sources/pyside6/COPYING \
"$pkgdir"${MINGW_PREFIX}/share/licenses/${_realname}/LICENSE

_pythonpath=`${MINGW_PREFIX}/bin/python -c "from sysconfig import get_path; print(get_path('platlib'))"`
# Install egg-info
cd "${srcdir}"/${_pkgfn%.*}
cd "${srcdir}"/${_pkgfn}
${MINGW_PREFIX}/bin/python setup.py egg_info --build-type=pyside6
cp -r PySide6.egg-info "$pkgdir"/$(cygpath ${_pythonpath})
# Install pyi files
Expand Down

0 comments on commit de9375c

Please sign in to comment.