+# Contributor: sev <alpine@sev.monster>
+# Maintainer: sev <alpine@sev.monster>
+pkgname=synapse-admin
+pkgver=0.8.5
+pkgrel=0
+pkgdesc="Admin UI for Matrix Synapse homeserver."
+url="https://github.com/Awesome-Technologies/synapse-admin"
+arch="all"
+license="Apache-2.0"
+makedepends="yarn"
+source="$pkgname-$pkgver.tar.gz::https://github.com/Awesome-Technologies/synapse-admin/archive/refs/tags/$pkgver.tar.gz"
+builddir="$srcdir/$pkgname-$pkgver"
+
+build() {
+ cd "$builddir" || exit 1
+ yarn install
+ yarn build
+}
+
+package() {
+ cd "$builddir" || exit 1
+ mkdir -p "$pkgdir/usr/share/webapps"
+ mv build "$pkgdir/usr/share/webapps/$pkgname"
+}
+
+sha512sums="
+9b89e28963698f84e8ce8dfc5b82cdca56dd8f1ccd89bc8f0115ebdc5212214e628b6a37f3dc4ccca73016cfaba10a8f416c4d1a5ee145e184c9579cdcaa70c8 synapse-admin-0.8.5.tar.gz
+"