summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Holden2020-10-26 01:34:02 +0100
committerJoe Holden2020-10-26 01:34:02 +0100
commit721228e6f36c1aae3bf7a32ffb48d30138290dac (patch)
treebbb4777202d0226085684b7b6bdfa1d4fd410667
downloadaur-721228e6f36c1aae3bf7a32ffb48d30138290dac.tar.gz
init
-rw-r--r--.SRCINFO32
-rw-r--r--PKGBUILD40
2 files changed, 72 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..a3f76068198
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,32 @@
+pkgbase = mautrix-signal-git
+ pkgdesc = mautrix-signal puppeting/relaybot bridge
+ pkgver = r1275.66917b6
+ pkgrel = 0
+ url = https://github.com/tulir/mautrix-signal
+ arch = any
+ license = AGPL-3.0
+ makedepends = git
+ depends = python-sqlalchemy
+ depends = python-ruamel-yaml
+ depends = python-magic-git
+ depends = python-commonmark
+ depends = python-aiohttp
+ depends = python-mautrix-git
+ depends = python-cryptg
+ depends = python-cchardet
+ depends = python-aiodns
+ depends = python-brotli
+ depends = python-pillow
+ depends = python-moviepy
+ depends = python-asyncpg
+ depends = python-olm
+ depends = python-phonenumbers
+ depends = python-pycryptodome
+ depends = python-unpaddedbase64
+ depends = python-matrix-nio
+ backup = etc/mautrix-signal/config.yaml
+ source = git+https://github.com/tulir/mautrix-signal.git
+ sha256sums = SKIP
+
+pkgname = mautrix-signal-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..8a5bc0dc2c6
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,40 @@
+# Maintainer: Joe Holden <jwh@zorins.us>
+
+_pkgbase=mautrix-signal
+pkgname=${_pkgbase}-git
+pkgver=r55.82cbefc
+pkgrel=1
+pkgdesc='mautrix-signal puppeting/relaybot bridge'
+arch=('any')
+license=('AGPL-3.0')
+depends=(python-sqlalchemy python-ruamel-yaml python-magic-git python-commonmark
+ python-aiohttp python-mautrix-git python-cryptg python-cchardet python-aiodns
+ python-brotli python-pillow python-moviepy python-asyncpg python-olm python-phonenumbers
+ python-pycryptodome python-unpaddedbase64 python-matrix-nio)
+makedepends=('git')
+backup=("etc/$_pkgbase/config.yaml")
+url='https://github.com/tulir/mautrix-signal'
+source=("git+https://github.com/tulir/mautrix-signal.git")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/$_pkgbase"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "$srcdir/$_pkgbase"
+ python setup.py build
+}
+
+prepare() {
+ cd "$srcdir/$_pkgbase"
+ sed -i 's/^mautrix==/mautrix>=/' requirements.txt
+}
+
+package() {
+ cd "$srcdir/$_pkgbase"
+ python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
+ install -Dm644 ./mautrix_signal/example-config.yaml "$pkgdir/etc/$_pkgbase/config.yaml"
+ sed -i "s|filename: ./$_pkgbase.log|filename: /etc/$_pkgbase/${_pkgbase}.log|g;" "$pkgdir/etc/$_pkgbase/config.yaml"
+}