diff options
author | bill-auger <mr.j.spam.me@gmail.com> | 2024-04-20 00:13:20 -0400 |
---|---|---|
committer | bill-auger <mr.j.spam.me@gmail.com> | 2024-04-24 03:33:49 -0400 |
commit | 5cefac87a7d28b75ce2ccb9ef54bb5cff4d7a123 (patch) | |
tree | b9e38ff2f8edebf84276f4daa6e2d84ff3cddd56 | |
parent | 33ec82c4fc5f1edeb5474c6c4a662dcba38f8a39 (diff) |
pyside6: upgrade to v6.7.0
-rw-r--r-- | libre/pyside6/PKGBUILD | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/libre/pyside6/PKGBUILD b/libre/pyside6/PKGBUILD index 1a94e9637..6ec03add6 100644 --- a/libre/pyside6/PKGBUILD +++ b/libre/pyside6/PKGBUILD @@ -1,21 +1,25 @@ # Maintainer (arch): Antonio Rojas <arojas@archlinux.org> # Maintainer (arch): Felix Yan <felixonmars@archlinux.org> # Maintainer: Parabola Hackers <dev@lists.parabola.nu> +# Contributor: bill-auger <bill-auger@programmer.net> # parabola changes and rationale: +# libre: # - remove 'qt6-webengine' dependency +# technical: # - add support for armv7h and i686 +# - build from versioned source-ball rather than VCS pkgbase=pyside6 pkgname=(pyside6 pyside6-tools shiboken6) -_qtver=6.6.2 +_qtver=6.7.0 _clangver=17.0.6 pkgver=${_qtver/-/} -pkgrel=2 +pkgrel=4 _pkgver_i686=6.4.2 _pkgrel_i686=5.0 eval "[[ -v _pkgver_${CARCH} ]] && pkgver=\$_pkgver_${CARCH}" # our different arches do not @@ -26,6 +30,7 @@ url='https://www.qt.io' license=(LGPL) makedepends=(clang cmake + git llvm ninja python-numpy @@ -53,23 +58,27 @@ makedepends=(clang qt6-webchannel qt6-webengine qt6-websockets) +makedepends=( ${makedepends[*]/git/} ) makedepends=( ${makedepends[*]/qt6-webengine/} ) -_pkgfn=pyside-setup-everywhere-src-$_qtver -source=(https://download.qt.io/official_releases/QtForPython/pyside6/PySide6-$pkgver-src/${_pkgfn}.tar.xz +_src_dir=pyside-setup-everywhere-src-$_qtver +source=(https://download.qt.io/official_releases/QtForPython/pyside6/PySide6-$pkgver-src/${_src_dir}.tar.xz fix-build.patch) -sha256sums=('14620b694d7af4c978443016292d3d2108ba5dc105f4170e3b71eadcaf04c9f0' +sha256sums=('82eae370737df5ecf539c165d09d7c81d5fc6153a541b8d3d37b11275f9e3e8f' '77b83cb164ea87d826259864f6a81fb33199510e1948d6daaf5c8d5ab55735a7') prepare() { - patch -d $_pkgfn -p1 < fix-build.patch + ln -fs ${_src_dir} pyside-setup # link source-ball root dir as VCS root dirname + + patch -d pyside-setup -p1 < fix-build.patch } build() { - cmake -B build -S $_pkgfn -G Ninja \ + cmake -B build -S pyside-setup -G Ninja \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=None \ -DSHIBOKEN_PYTHON_LIBRARIES=`pkgconf python3-embed --libs` \ -DBUILD_TESTS=OFF \ + -DFORCE_LIMITED_API=no \ -DNO_QT_TOOLS=yes PYTHONPATH="$PWD"/build/sources \ cmake --build build @@ -91,8 +100,7 @@ package_shiboken6() { # Install egg-info export PATH="/usr/lib/qt6/bin:$PATH" - export SETUPTOOLS_USE_DISTUTILS=stdlib - cd $_pkgfn + cd pyside-setup python setup.py egg_info --build-type=shiboken6 python setup.py egg_info --build-type=shiboken6-generator _pythonpath=`python -c "from sysconfig import get_path; print(get_path('platlib'))"` @@ -135,7 +143,7 @@ package_pyside6() { # Install egg-info export PATH="/usr/lib/qt6/bin:$PATH" - cd $_pkgfn + cd pyside-setup python setup.py egg_info --build-type=pyside6 _pythonpath=`python -c "from sysconfig import get_path; print(get_path('platlib'))"` cp -r PySide6.egg-info "$pkgdir"/$_pythonpath |