[arch-commits] Commit in displaycal/repos (2 files)
Bruno Pagani
archange at gemini.archlinux.org
Sun Jul 10 22:18:11 UTC 2022
Date: Sunday, July 10, 2022 @ 22:18:11
Author: archange
Revision: 1249343
archrelease: copy trunk to community-staging-x86_64
Added:
displaycal/repos/community-staging-x86_64/
displaycal/repos/community-staging-x86_64/PKGBUILD
(from rev 1249342, displaycal/trunk/PKGBUILD)
----------+
PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
Copied: displaycal/repos/community-staging-x86_64/PKGBUILD (from rev 1249342, displaycal/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2022-07-10 22:18:11 UTC (rev 1249343)
@@ -0,0 +1,41 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+# Contributor: Timothy Redaelli <timothy.redaelli at gmail.com>
+# Contributor: Cedric Girard <girard.cedric at gmail.com>
+# Contributor: foxbunny <bg.branko at gmail.com>
+
+_pkgname=DisplayCAL
+pkgname=displaycal
+pkgver=3.9.6
+pkgrel=1
+pkgdesc="Open Source Display Calibration and Characterization powered by Argyll CMS (Formerly known as dispcalGUI)"
+arch=(x86_64)
+url="https://github.com/eoyilmaz/displaycal-py3"
+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-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
+ ${pkgname}-wxfixes-py3.10.patch::https://github.com/eoyilmaz/displaycal-py3/pull/138.patch)
+sha256sums=('fad0a1773f50b9a6b1c1a588e8418b5376880ff1e87672367764e4975410cb6b'
+ '5ec60779038337c4d048762cb1698dd56544ad6f6fd9340011302217d7112c5c')
+
+prepare() {
+ patch -p1 -d ${_pkgname}-${pkgver} < ${pkgname}-wxfixes-py3.10.patch
+}
+
+build() {
+ cd ${_pkgname}-${pkgver}
+ python -m build --wheel --no-isolation
+}
+
+package() {
+ cd ${_pkgname}-${pkgver}
+ python -m installer --destdir="${pkgdir}" dist/*.whl
+ # https://github.com/eoyilmaz/displaycal-py3/issues/117
+ 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