]> git.sev.monster Git - aports.git/blob - testing/element-web/APKBUILD
testing/uptime-kuma: upgrade to 1.18.5
[aports.git] / testing / element-web / APKBUILD
1 # Contributor: sev <alpine@sev.monster>
2 # Maintainer: sev <alpine@sev.monster>
3 pkgname=element-web
4 pkgver=1.9.7
5 pkgrel=0
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"
8 arch="all"
9 license="Apache-2.0"
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"
13 options="!check"
14
15 prepare() {
16         cd "$builddir"
17         echo "GENERATE_SOURCEMAPS=false" >> .env
18         yarn install
19 }
20
21 build() {
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
31 package() {
32         mkdir -p "$pkgdir/usr/share/webapps"
33         cp -r webapp "$pkgdir/usr/share/webapps/element"
34 }
35
36 sha512sums="
37 e5ad25a609c73bdee70089e5f974255b397d8ff3340aab4945aa37ef97a2c5c46624cffe1338664788ec40068568573ea6160b0b256431ccac5c8acfc906d92b  element-1.9.7.tar.gz
38 "
This page took 0.035777 seconds and 4 git commands to generate.