# Contributor: Leo # Maintainer: Leo pkgname=synapse pkgver=1.3.1 pkgrel=0 pkgdesc="Matrix reference homeserver" url="https://github.com/matrix-org/synapse" arch="noarch !s390x" # Tests fail license="Apache-2.0" depends=" python3 py3-eliot py3-txacme py3-jsonschema py3-frozendict py3-canonicaljson py3-pynacl py3-idna py3-service_identity py3-twisted py3-openssl py3-yaml py3-asn1 py3-asn1-modules py3-daemonize py3-bcrypt py3-pillow py3-sortedcontainers py3-psutil py3-msgpack py3-phonenumbers py3-six py3-attrs py3-netaddr py3-jinja2 py3-pymacaroons py3-prometheus-client py3-treq py3-lxml py3-psycopg2 py3-signedjson py3-bleach " makedepends="py3-setuptools" checkdepends="py3-mock py3-parameterized" pkgusers="synapse" pkggroups="synapse" install="$pkgname.pre-install $pkgname.post-install" subpackages="$pkgname-openrc" source="$pkgname-$pkgver.tar.gz::https://github.com/matrix-org/synapse/archive/v$pkgver.tar.gz synapse.initd synapse.confd " build() { python3 setup.py build } check() { PYTHONPATH="." trial tests } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" install -d -g synapse -o synapse -m775 \ "$pkgdir"/etc/synapse \ "$pkgdir"/var/lib/synapse cp -a synapse/res "$pkgdir"/var/lib/synapse chown -R synapse:synapse "$pkgdir"/var/lib/synapse/res install -Dm755 "$srcdir"/synapse.initd "$pkgdir"/etc/init.d/synapse install -Dm644 "$srcdir"/synapse.confd "$pkgdir"/etc/conf.d/synapse } sha512sums="b686cc63946c30f6f41fbd174a303a4623a65f3c62de6e9489ed4dfa0035be1e8b52b0dcaf50c61cb215d8afb98ea72a7f11f7149dc386c8e78711dd397ccc10 synapse-1.3.1.tar.gz af8b136f4e4f155001f6a6397e77ca21f1aff749895ac99dbe58a45bfb3a15ce021a6f70dc3aea4c789dc81bf8fabf0841af8351ca35d13741db1730a800e156 synapse.initd 7c022f0e00c8ac363d6d2e003b6389fb06a3934f68390ebac156cb46bc1366585e6b6cda07b15176bc62a00f5bf21bfda153ff5418b07331257a7075102a6f83 synapse.confd"