summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlos Mogas da Silva2017-10-24 21:24:24 +0100
committerCarlos Mogas da Silva2017-10-24 21:24:24 +0100
commit60049cbd1fc6a3711112cfa2b07f382d0fec7709 (patch)
tree775a77fbe0af9696177bd2575dd8c5224a287a85
downloadaur-60049cbd1fc6a3711112cfa2b07f382d0fec7709.tar.gz
Initial import
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD22
2 files changed, 37 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..2f2ad3c7260
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = matrix-synapse-rest-auth
+ pkgdesc = REST endpoint Authentication module for synapse
+ pkgver = 0.1.1
+ pkgrel = 1
+ url = https://github.com/kamax-io/matrix-synapse-rest-auth
+ arch = any
+ license = AGPL3
+ depends = python2
+ depends = python2-twisted
+ depends = matrix-synapse
+ source = https://github.com/kamax-io/matrix-synapse-rest-auth/archive/v0.1.1.tar.gz
+ sha256sums = 8c9368c5f1ab8e2e3a9788cf4e4ad0bcd197cc68b278efd360edb516e674658d
+
+pkgname = matrix-synapse-rest-auth
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..c6268daa040
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,22 @@
+# Maintainer: Carlos Mogas da Silva <r3pek@r3pek.org>
+
+pkgname=matrix-synapse-rest-auth
+pkgver=0.1.1
+pkgrel=1
+pkgdesc='REST endpoint Authentication module for synapse'
+arch=('any')
+url='https://github.com/kamax-io/matrix-synapse-rest-auth'
+license=('AGPL3')
+depends=('python2' 'python2-twisted' 'matrix-synapse')
+source=("https://github.com/kamax-io/${pkgname}/archive/v${pkgver}.tar.gz")
+sha256sums=('8c9368c5f1ab8e2e3a9788cf4e4ad0bcd197cc68b278efd360edb516e674658d')
+
+package() {
+ cd "${pkgname}-${pkgver}"
+
+ PYTHON_LOCATION=$(python2 -c "import site; print(site.getsitepackages()[0])")
+
+ # File
+ install -dm 755 "${pkgdir}"/${PYTHON_LOCATION}/synapse
+ install -m 644 rest_auth_provider.py "${pkgdir}"/${PYTHON_LOCATION}/synapse/rest_auth_provider.py
+}