1 # Contributor: sev <alpine@sev.monster>
2 # Maintainer: sev <alpine@sev.monster>
6 pkgdesc="Element (formerly known as Vector and Riot) is a Matrix web client built using the Matrix React SDK."
7 url="https://element.io"
10 makedepends="nodejs>=14 yarn<2 git"
11 source="element-$pkgver.tar.gz::https://github.com/vector-im/element-web/archive/refs/tags/v$pkgver.tar.gz"
12 builddir="$srcdir/element-web-$pkgver"
17 echo "GENERATE_SOURCEMAPS=false" >> .env
23 # yarn dist script functionality copied from scripts/package.sh as of v1.9.7
24 # git describe --dirty should match v$pkgver for unmodified src tarball
25 VERSION="v$pkgver" yarn build
26 cp config.sample.json webapp/
27 # don't need normalize-version.sh since $pkgver should not be prefixed with v
28 echo "$pkgver" > webapp/version
32 mkdir -p "$pkgdir/usr/share/webapps"
33 cp -r webapp "$pkgdir/usr/share/webapps/element"
37 e5ad25a609c73bdee70089e5f974255b397d8ff3340aab4945aa37ef97a2c5c46624cffe1338664788ec40068568573ea6160b0b256431ccac5c8acfc906d92b element-1.9.7.tar.gz