[arch-commits] Commit in displaycal/trunk (PKGBUILD)

Bruno Pagani archange at gemini.archlinux.org
Wed May 18 16:46:37 UTC 2022


    Date: Wednesday, May 18, 2022 @ 16:46:37
  Author: archange
Revision: 1209113

upgpkg: displaycal 3.9.4-1

Switch to modern Python packaging

Modified:
  displaycal/trunk/PKGBUILD

----------+
 PKGBUILD |   18 +++++++++++-------
 1 file changed, 11 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-05-18 16:40:46 UTC (rev 1209112)
+++ PKGBUILD	2022-05-18 16:46:37 UTC (rev 1209113)
@@ -5,7 +5,7 @@
 
 _pkgname=DisplayCAL
 pkgname=displaycal
-pkgver=3.9.3
+pkgver=3.9.4
 pkgrel=1
 pkgdesc="Open Source Display Calibration and Characterization powered by Argyll CMS (Formerly known as dispcalGUI)"
 arch=(x86_64)
@@ -13,20 +13,24 @@
 license=(GPL3)
 depends=(argyllcms dbus dbus-python glib2 python-certifi python-numpy
          python-pillow python-send2trash python-wxpython python-zeroconf)
-makedepends=(libxrandr libxxf86vm python-build python-setuptools)
+makedepends=(libxrandr libxxf86vm python-build python-installer
+             python-setuptools python-wheel)
 optdepends=('gnome-color-manager: profile installation for GNOME'
             'colord-kde: profile installation for KDE Plasma')
 source=(${url}/releases/download/${pkgver}/${_pkgname}-${pkgver}.tar.gz)
-sha256sums=('069ee8b524725ae063d5714aef49c75c0842394e72611e5257dfe28eb6a7d4a3')
+sha256sums=('fd0fe74043b076fd949eaa084b9180b33153cec7344f86627fecf930e3f9f592')
 
 build() {
   cd ${_pkgname}-${pkgver}
-  python setup.py build
+  python -m build --wheel --no-isolation
 }
 
 package() {
   cd ${_pkgname}-${pkgver}
-  python setup.py install --root="${pkgdir}" --skip-build --optimize=1
-  # udev rules are shipped with argyllcms
-  rm -r "${pkgdir}"/etc/udev/
+  python -m installer --destdir="${pkgdir}" dist/*.whl
+  # https://github.com/eoyilmaz/displaycal-py3/issues/117
+  rm -r "${pkgdir}"/usr/lib/python3.10/site-packages/etc/
+  install -d "${pkgdir}"/etc/xdg/autostart
+  mv "${pkgdir}"/{usr/lib/python3.10/site-packages/build/.config,etc/xdg}/autostart/z-displaycal-apply-profiles.desktop
+  rmdir "${pkgdir}"/usr/lib/python3.10/site-packages/build/{.config{/autostart,},}
 }



More information about the arch-commits mailing list