# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org>
pkgname=riot-web
pkgver=0.13.5
pkgrel=0
pkgdesc="A glossy Matrix collaboration client for the web"
url="http://riot.im/"
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"

build() {
	return 0
}

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
}

sha512sums="d892ea9871bcb7df08702b1f2d57f1126e59167aa23941501e0f9af70dc725235d6df3d319ebe46b549de86bb8b4b83d3b01da094a07d781cb6ecd580a4daab2  riot-v0.13.5.tar.gz"
