2022-03-27 16:25:09 +02:00
|
|
|
# Description: Matrix reference homeserver
|
2024-01-16 21:03:51 +01:00
|
|
|
# URL: https://github.com/element-hq/synapse
|
2022-03-27 16:25:09 +02:00
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
2023-08-30 17:17:33 +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
|
2023-09-01 20:09:31 +02:00
|
|
|
# Optional: python3-hiredis python3-lxml python3-psutil python3-psycopg2 python3-pyjwt python3-txredisapi
|
2022-03-27 16:25:09 +02:00
|
|
|
|
|
|
|
name=matrix-synapse
|
2024-04-04 00:14:03 +02:00
|
|
|
version=1.104.0
|
2023-09-04 17:00:42 +02:00
|
|
|
release=1
|
2024-01-16 21:03:51 +01:00
|
|
|
source=(https://github.com/element-hq/synapse/archive/v$version/$name-$version.tar.gz
|
2022-03-27 16:25:09 +02:00
|
|
|
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
|
|
|
|
}
|