[arch-commits] Commit in displaycal/repos/community-x86_64 (PKGBUILD PKGBUILD)
Bruno Pagani
archange at gemini.archlinux.org
Wed May 18 16:47:04 UTC 2022
Date: Wednesday, May 18, 2022 @ 16:47:04
Author: archange
Revision: 1209114
archrelease: copy trunk to community-x86_64
Added:
displaycal/repos/community-x86_64/PKGBUILD
(from rev 1209113, displaycal/trunk/PKGBUILD)
Deleted:
displaycal/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 68 ++++++++++++++++++++++++++++++++-----------------------------
1 file changed, 36 insertions(+), 32 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-05-18 16:46:37 UTC (rev 1209113)
+++ PKGBUILD 2022-05-18 16:47:04 UTC (rev 1209114)
@@ -1,32 +0,0 @@
-# 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.3
-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-setuptools)
-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')
-
-build() {
- cd ${_pkgname}-${pkgver}
- python setup.py build
-}
-
-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/
-}
Copied: displaycal/repos/community-x86_64/PKGBUILD (from rev 1209113, displaycal/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-05-18 16:47:04 UTC (rev 1209114)
@@ -0,0 +1,36 @@
+# 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.4
+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)
+sha256sums=('fd0fe74043b076fd949eaa084b9180b33153cec7344f86627fecf930e3f9f592')
+
+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
+ 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