Files
guru/app-containers/incus-ui/incus-ui-0.18.2.ebuild
Adel KARA SLIMANE dc89a99c76 app-containers/incus-ui: new package, add 0.18.2
Signed-off-by: Adel KARA SLIMANE <adel.ks@zegrapher.com>
2025-10-05 00:52:22 +02:00

56 lines
995 B
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit systemd
DESCRIPTION="Incus web UI module"
HOMEPAGE="https://github.com/zabbly/incus-ui-canonical"
SRC_URI="
https://github.com/zabbly/incus-ui-canonical/archive/refs/tags/incus-0.18.2.tar.gz -> ${P}.tar.gz
https://github.com/AdelKS/gentoo-distfiles/releases/download/${CATEGORY}/${PF}/${PF}-deps.tar.xz
"
S="${WORKDIR}/incus-ui-canonical-incus-${PV}"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
app-containers/incus
net-libs/nodejs[npm]
"
DEPEND="${RDEPEND}"
BDEPEND="
net-libs/nodejs[npm]
sys-apps/yarn
"
src_prepare() {
default
unpack "${PF}-deps.tar.xz"
yarn install || die
}
src_compile() {
yarn build || die
}
src_install() {
insinto /usr/share/incus-ui
doins -r build/ui/*
systemd_install_dropin incus.service "${FILESDIR}"/incus.systemd.override
}
pkg_postinst() {
systemctl daemon-reload
}
pkg_postrm() {
systemctl daemon-reload
}