app-emulation/spice-html5: add missing license, install files like the rpm

Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
Alessandro Barbieri
2022-04-07 16:38:14 +02:00
parent afaee1f466
commit 836551fdec

View File

@@ -1,4 +1,4 @@
# Copyright 2019-2021 Gentoo Authors
# Copyright 2019-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -8,17 +8,16 @@ HOMEPAGE="https://gitlab.freedesktop.org/spice/spice-html5"
SRC_URI="https://gitlab.freedesktop.org/spice/${PN}/-/archive/${P}/${PN}-${P}.tar.gz"
S="${WORKDIR}/${PN}-${P}"
LICENSE="LGPL-3" # maybe other licenses
LICENSE="LGPL-3 MIT"
SLOT="0"
KEYWORDS="~amd64"
# no compiling
src_compile() {
true
sed -e "s/VERSION/$(PV)/" < package.json.in > package.json || die
}
src_install() {
dodoc README
dodoc README TODO apache.conf.sample
insinto /usr/share/spice-html5
doins -r src apache.conf.sample spice.css spice.html spice_auto.html
doins -r src *.html *.json *.css
}