]> git.sev.monster Git - aports.git/blame_incremental - testing/element-web/APKBUILD
testing/py3-iso3166: upgrade to 2.1.1, fix tests
[aports.git] / testing / element-web / APKBUILD
... / ...
CommitLineData
1# Contributor: sev <alpine@sev.monster>
2# Maintainer: sev <alpine@sev.monster>
3pkgname=element-web
4pkgver=1.9.7
5pkgrel=0
6pkgdesc="Element (formerly known as Vector and Riot) is a Matrix web client built using the Matrix React SDK."
7url="https://element.io"
8arch="all"
9license="Apache-2.0"
10makedepends="nodejs>=14 yarn<2 git"
11source="element-$pkgver.tar.gz::https://github.com/vector-im/element-web/archive/refs/tags/v$pkgver.tar.gz"
12builddir="$srcdir/element-web-$pkgver"
13options="!check"
14
15prepare() {
16 cd "$builddir"
17 echo "GENERATE_SOURCEMAPS=false" >> .env
18 yarn install
19}
20
21build() {
22 cd "$builddir"
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
29}
30
31package() {
32 mkdir -p "$pkgdir/usr/share/webapps"
33 cp -r webapp "$pkgdir/usr/share/webapps/element"
34}
35
36sha512sums="
37e5ad25a609c73bdee70089e5f974255b397d8ff3340aab4945aa37ef97a2c5c46624cffe1338664788ec40068568573ea6160b0b256431ccac5c8acfc906d92b element-1.9.7.tar.gz
38"
This page took 0.0312 seconds and 4 git commands to generate.