From 2dae5b8972369618c86242405286535a6570d625 Mon Sep 17 00:00:00 2001 From: sev Date: Mon, 20 Dec 2021 00:26:13 -0600 Subject: [PATCH] testing/element: new aport --- testing/element-web/APKBUILD | 38 ++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 testing/element-web/APKBUILD diff --git a/testing/element-web/APKBUILD b/testing/element-web/APKBUILD new file mode 100644 index 0000000..5bd0021 --- /dev/null +++ b/testing/element-web/APKBUILD @@ -0,0 +1,38 @@ +# Contributor: sev +# Maintainer: sev +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 +" -- 2.47.0