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
|
2023-04-28 17:37:27 +02:00
|
|
|
# Depends on: python3-bcrypt python3-bleach python3-ijson python3-immutabledict python3-matrix-common python3-msgpack 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-07-18 21:15:45 +02:00
|
|
|
version=1.88.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
|
|
|
|
}
|