blob: 71b09b4507ba168a88883ad3668a861fbe3daed1 (
plain)
1 # Description: Matrix reference homeserver
2 # URL: https://github.com/matrix-org/synapse
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Depends on: python3-bcrypt python3-bleach python3-ijson python3-netaddr python3-phonenumbers python3-pillow python3-prometheus_client python3-pymacaroons python3-pysaml2 python3-signedjson-compat python3-sortedcontainers python3-treq python3-yaml
5 # Optional: python3-hiredis python3-lxml python3-psutil python3-psycopg2 python3-pyjwt python3-txredisapi psycopg2
6
7 name=matrix-synapse
8 version=1.62.0
9 release=1
10 source=(https://github.com/matrix-org/synapse/archive/v$version/$name-$version.tar.gz
11 synapse.service)
12
13 build() {
14 cd synapse-$version
15
16 /usr/bin/python3 -m build --wheel --skip-dependency-check --no-isolation
17 /usr/bin/python3 -m install --optimize=1 --destdir=$PKG dist/*.whl
18
19 # fix bin dir
20 chmod +x $PKG/usr/bin/*
21
22 install -dm0700 -o synapse -g synapse /etc/synapse
23 install -dm0700 -o synapse -g synapse /var/lib/synapse
24 install -Dm0755 -o root -g root $SRC/synapse.service \
25 $PKG/etc/rc.d/synapse
26 }
|