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

Alexander Epaneshnikov alex19ep at gemini.archlinux.org
Wed May 18 21:31:46 UTC 2022


    Date: Wednesday, May 18, 2022 @ 21:31:45
  Author: alex19ep
Revision: 1209153

upgpkg: matrix-synapse 1.59.1-1 upstream release

switched to python-build + python-installer from setuptools and to git sources
from tarbaule.

Modified:
  matrix-synapse/trunk/PKGBUILD

----------+
 PKGBUILD |   23 ++++++++++++-----------
 1 file changed, 12 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-05-18 21:18:30 UTC (rev 1209152)
+++ PKGBUILD	2022-05-18 21:31:45 UTC (rev 1209153)
@@ -3,7 +3,7 @@
 # Contributor: Ivan Shapovalov <intelfx at intelfx.name>
 
 pkgname=matrix-synapse
-pkgver=1.57.0
+pkgver=1.59.1
 pkgrel=1
 pkgdesc="Matrix reference homeserver"
 url="https://github.com/matrix-org/synapse"
@@ -20,8 +20,8 @@
          'python-attrs' 'python-netaddr' 'python-sortedcontainers'
          'python-treq' 'python-idna' 'python-jinja' 'python-matrix-common'
          'python-bleach' 'python-typing_extensions' 'systemd')
-makedepends=('python-setuptools')
-checkdepends=('python-authlib' 'python-pyjwt' 'python-lxml' 'python-parameterized'
+makedepends=(git python-build python-installer python-wheel python-poetry)
+checkdepends=('python-pip' 'python-authlib' 'python-pyjwt' 'python-lxml' 'python-parameterized'
               'python-txredisapi' 'python-hiredis')
 optdepends=('perl: sync_room_to_group.pl'
             'python-psycopg2: PostgreSQL support'
@@ -30,7 +30,7 @@
             'python-pyjwt: jwt'
             'python-txredisapi: redis'
             'python-hiredis')
-source=("synapse-$pkgver.tar.gz::https://github.com/matrix-org/synapse/archive/v$pkgver.tar.gz"
+source=("$pkgname::git+https://github.com/matrix-org/synapse.git#tag=v$pkgver"
         'generic_worker.yaml.example'
         'synapse.service'
         'synapse.target'
@@ -38,7 +38,7 @@
         'sysusers-synapse.conf'
         'tmpfiles-synapse.conf'
         'override-hardened.conf')
-sha256sums=('d574f6f599f00d139045e04d017a201397b21248b560b69c5cdfccccd920cc0a'
+sha256sums=('SKIP'
             'f67334856609997eac26939d77cfc520e78e98d3755543ab730d83a0f362a35e'
             '74af0bc2f57e5ced1a44f2438922d420cbb7defedae784cac02ef125f276a2ed'
             '408527271e1250beb20531f140b91201ed464e42f7eb3f47f02967a2ac23a661'
@@ -50,18 +50,19 @@
 install=synapse.install
 
 build() {
-	cd synapse-$pkgver
-	python setup.py build
+	cd $pkgname
+	python -m build --wheel --no-isolation
 }
 
 check() {
-	cd synapse-$pkgver
-	PYTHONPATH=. trial -j8 tests
+	cd $pkgname
+	pip install dist/*.whl
+	PYTHONPATH="$PWD" python -m twisted.trial -j8 tests
 }
 
 package() {
-	cd synapse-$pkgver
-	python setup.py install --root "$pkgdir" --optimize=1 --skip-build
+	cd $pkgname
+	python -m installer --destdir="$pkgdir" dist/*.whl
 
 	install -vdm755 -o 198 -g 198 "$pkgdir"/etc/synapse
 	install -vDm644 contrib/systemd/log_config.yaml "$pkgdir"/etc/synapse/log_config.yaml



More information about the arch-commits mailing list