]> git.sev.monster Git - aports.git/commitdiff
testing/element: new aport
authorsev <git@sev.monster>
Mon, 20 Dec 2021 06:26:13 +0000 (00:26 -0600)
committersev <git@sev.monster>
Mon, 28 Oct 2024 22:46:53 +0000 (17:46 -0500)
testing/element-web/APKBUILD [new file with mode: 0644]

diff --git a/testing/element-web/APKBUILD b/testing/element-web/APKBUILD
new file mode 100644 (file)
index 0000000..5bd0021
--- /dev/null
@@ -0,0 +1,38 @@
+# 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
+"
This page took 0.035951 seconds and 4 git commands to generate.