summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorbobpaul2020-04-11 16:08:56 -0500
committerbobpaul2020-04-11 16:08:56 -0500
commit161b81f836fdd71a49897ae670235692aa9c11ce (patch)
treee81b147b36154b2441a586a7d91cbfe471f6a2b4
downloadaur-161b81f836fdd71a49897ae670235692aa9c11ce.tar.gz
Initial release
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD32
2 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..bffe3e6eb5c
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = python-mautrix-git
+ pkgdesc = A Python 3 asyncio Matrix framework.
+ pkgver = r317.645a0fa
+ pkgrel = 0
+ url = https://github.com/tulir/mautrix-python
+ arch = any
+ license = MPL2
+ makedepends = python3
+ makedepends = python-setuptools
+ depends = python
+ provides = python-mautrix
+ conflicts = python-mautrix
+ source = mautrix-python::git+https://github.com/tulir/mautrix-python
+ sha256sums = SKIP
+
+pkgname = python-mautrix-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..cd67ca11f90
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: bobpaul
+
+_pkgbase=python-mautrix
+pkgname=${_pkgbase}-git
+pkgver=r317.645a0fa
+pkgrel=0
+pkgdesc="A Python 3 asyncio Matrix framework."
+url="https://github.com/tulir/mautrix-python"
+depends=('python')
+makedepends=('python3' 'python-setuptools')
+provides=(python-mautrix)
+conflicts=(python-mautrix)
+license=('MPL2')
+arch=('any')
+source=("mautrix-python::git+https://github.com/tulir/mautrix-python")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/mautrix-python"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "$srcdir/mautrix-python"
+ python setup.py build
+}
+
+package() {
+ cd "$srcdir/mautrix-python"
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}