+++ /dev/null
-# Contributor: sev <alpine@sev.monster>
-# Maintainer: sev <alpine@sev.monster>
-pkgname=element-web
-pkgver=1.9.7
-pkgrel=0
-pkgdesc="Element (formerly known as Vector and Riot) is a Matrix web client built using the Matrix React SDK."
-url="https://element.io"
-arch="all"
-license="Apache-2.0"
-makedepends="nodejs>=14 yarn<2 git"
-source="element-$pkgver.tar.gz::https://github.com/vector-im/element-web/archive/refs/tags/v$pkgver.tar.gz"
-builddir="$srcdir/element-web-$pkgver"
-options="!check"
-
-prepare() {
- cd "$builddir"
- echo "GENERATE_SOURCEMAPS=false" >> .env
- yarn install
-}
-
-build() {
- cd "$builddir"
- # yarn dist script functionality copied from scripts/package.sh as of v1.9.7
- # git describe --dirty should match v$pkgver for unmodified src tarball
- VERSION="v$pkgver" yarn build
- cp config.sample.json webapp/
- # don't need normalize-version.sh since $pkgver should not be prefixed with v
- echo "$pkgver" > webapp/version
-}
-
-package() {
- mkdir -p "$pkgdir/usr/share/webapps"
- cp -r webapp "$pkgdir/usr/share/webapps/element"
-}
-
-sha512sums="
-e5ad25a609c73bdee70089e5f974255b397d8ff3340aab4945aa37ef97a2c5c46624cffe1338664788ec40068568573ea6160b0b256431ccac5c8acfc906d92b element-1.9.7.tar.gz
-"