2022-03-27 16:25:09 +02:00
|
|
|
# Description: Matrix reference homeserver
|
|
|
|
# URL: https://github.com/matrix-org/synapse
|
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
2022-10-04 06:18:42 +02:00
|
|
|
# Depends on: python3-bcrypt python3-bleach python3-ijson python3-matrix-common python3-netaddr python3-phonenumbers python3-pillow python3-prometheus_client python3-pydantic python3-pymacaroons python3-pysaml2 python3-signedjson python3-sortedcontainers python3-treq python3-yaml
|
2022-03-27 16:25:09 +02:00
|
|
|
# Optional: python3-hiredis python3-lxml python3-psutil python3-psycopg2 python3-pyjwt python3-txredisapi psycopg2
|
|
|
|
|
|
|
|
name=matrix-synapse
|
2023-03-17 18:35:07 +01:00
|
|
|
version=1.79.0
|
2022-03-27 16:25:09 +02:00
|
|
|
release=1
|
|
|
|
source=(https://github.com/matrix-org/synapse/archive/v$version/$name-$version.tar.gz
|
|
|
|
synapse.service)
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd synapse-$version
|
2022-05-06 12:39:50 +02:00
|
|
|
|
|
|
|
/usr/bin/python3 -m build --wheel --skip-dependency-check --no-isolation
|
2022-07-10 19:22:59 +02:00
|
|
|
/usr/bin/python3 -m installer --compile-bytecode 2 --destdir=$PKG dist/*.whl
|
2022-03-27 16:25:09 +02:00
|
|
|
|
|
|
|
install -dm0700 -o synapse -g synapse /etc/synapse
|
|
|
|
install -dm0700 -o synapse -g synapse /var/lib/synapse
|
|
|
|
install -Dm0755 -o root -g root $SRC/synapse.service \
|
|
|
|
$PKG/etc/rc.d/synapse
|
|
|
|
}
|