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

Daniel M. Capella polyzen at gemini.archlinux.org
Tue Sep 6 22:29:27 UTC 2022


    Date: Tuesday, September 6, 2022 @ 22:29:27
  Author: polyzen
Revision: 1295995

upgpkg: xandikos 0.2.8-2: Use PEP 517

Modified:
  xandikos/trunk/PKGBUILD

----------+
 PKGBUILD |    9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-09-06 22:26:00 UTC (rev 1295994)
+++ PKGBUILD	2022-09-06 22:29:27 UTC (rev 1295995)
@@ -2,7 +2,7 @@
 
 pkgname=xandikos
 pkgver=0.2.8
-pkgrel=1
+pkgrel=2
 pkgdesc='Lightweight yet complete CardDAV/CalDAV server that backs onto a Git repository'
 arch=('any')
 url=https://www.xandikos.org
@@ -9,7 +9,8 @@
 license=('GPL3')
 depends=('python-aiohttp' 'python-defusedxml' 'python-dulwich'
          'python-icalendar' 'python-jinja' 'python-multidict')
-makedepends=('python-setuptools')
+makedepends=('python-build' 'python-installer' 'python-setuptools'
+             'python-wheel')
 optdepends=('python-aiohttp-openmetrics: for metrics with the standalone server'
             'uwsgi-plugin-python: for the WSGI interface')
 source=("https://files.pythonhosted.org/packages/source/x/xandikos/xandikos-$pkgver.tar.gz")
@@ -18,7 +19,7 @@
 
 build() {
   cd xandikos-$pkgver
-  python setup.py build
+  python -m build --wheel --skip-dependency-check --no-isolation
 }
 
 check() {
@@ -28,7 +29,7 @@
 
 package() {
   cd xandikos-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  python -m installer --destdir="$pkgdir" dist/*.whl
   install -Dm644 -t "$pkgdir"/usr/share/doc/xandikos README.rst
   install -Dm644 -t "$pkgdir"/usr/share/doc/xandikos/examples examples/*
   #install -Dm644 -t "$pkgdir"/usr/share/man/man8 man/xandikos.8



More information about the arch-commits mailing list