Commit 102ecfb7 authored by Newbyte's avatar Newbyte

element-web: rename from riot-web and upgrade

parent 52f5a85a
Pipeline #76345 passed with stages
in 11 minutes and 59 seconds
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Galen Abell <galen@galenabell.com>
pkgname=riot-web
pkgver=1.7.14
pkgname=element-web
pkgver=1.7.23
pkgrel=0
pkgdesc="A glossy Matrix collaboration client for the web"
url="https://riot.im/"
provides=riot-web
replaces=riot-web
url="https://element.io/"
arch="noarch"
options="!check"
license="Apache-2.0"
source="https://github.com/vector-im/riot-web/releases/download/v$pkgver/riot-v$pkgver.tar.gz"
builddir="$srcdir/riot-v$pkgver"
install="$pkgname.post-upgrade"
source="https://github.com/vector-im/element-web/releases/download/v$pkgver/element-v$pkgver.tar.gz"
builddir="$srcdir/element-v$pkgver"
build() {
return 0
......@@ -17,12 +20,12 @@ build() {
package() {
mkdir -p "$pkgdir"/usr/share/webapps \
"$pkgdir"/etc/riot-web
cp -r "$builddir" "$pkgdir"/usr/share/webapps/riot-web
mv "$pkgdir"/usr/share/webapps/riot-web/config.sample.json \
"$pkgdir"/etc/riot-web
ln -sf /etc/riot-web/config.json \
"$pkgdir"/usr/share/webapps/riot-web/config.json
"$pkgdir"/etc/element-web
cp -r "$builddir" "$pkgdir"/usr/share/webapps/element-web
mv "$pkgdir"/usr/share/webapps/element-web/config.sample.json \
"$pkgdir"/etc/element-web
ln -sf /etc/element-web/config.json \
"$pkgdir"/usr/share/webapps/element-web/config.json
}
sha512sums="7037fe099f99585c956ee4c004ffc31bc01a2dab24955fcdb2e31580cd8b33d5f421fec94c92dac837068f1b45aeab9bf97698a15266e44a3181053ee05bda48 riot-v1.7.14.tar.gz"
sha512sums="08dc3457ece68759124ffed25f08b73aa78af2f53c4b2d1e0a55ca3b9276aac5f8d6136a5f8e64f2a8dc60f49c8dd167d05f95013ffa421fb0c8884d302ce889 element-v1.7.23.tar.gz"
#!/bin/sh
echo "Warning!! The configuration file has changed location due to riot being"
echo "renamed to element. The old location should still work for current"
echo "installs, but future installs will not have the configuration file in"
echo "the old location.\n\n"
echo "Old location: /etc/riot-web/config.json"
echo "New location: /etc/element-web/config.json"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment