summaryrefslogtreecommitdiff
path: root/www-apps/element/element-1.8.1.ebuild
blob: 0d6f2e6d2cb47d84651d140d763f6277fc46beea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit webapp

DESCRIPTION="A glossy Matrix collaboration client for the web"
HOMEPAGE="https://element.io/"
SRC_URI="https://github.com/vector-im/element-web/releases/download/v${PV}/${PN}-v${PV}.tar.gz"

LICENSE="Apache-2.0"
KEYWORDS="~amd64 ~x86"

DEPEND=""
RDEPEND="${DEPEND}"
need_httpd

S=${WORKDIR}/${PN}-v${PV}

src_install() {
	webapp_src_preinst

	insinto "${MY_HTDOCSDIR}"
	doins -r .

	dodir "${MY_HTDOCSDIR}"/home
	dodir "${MY_HTDOCSDIR}"/sites

	webapp_serverowned "${MY_HTDOCSDIR}"/home
	webapp_serverowned "${MY_HTDOCSDIR}"/sites
	#webapp_configfile "${MY_HTDOCSDIR}"/config.json

	webapp_src_install
}