gentoo-ebuilds/app-misc/calamares-gentoo-livecd/calamares-gentoo-livecd-3.3.14_p20250915.ebuild
Viorel Munteanu 8c636ed521
app-misc/calamares-gentoo-livecd: clean-up
Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
2025-10-04 09:05:29 +03:00

30 lines
853 B
Bash

# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="8"
inherit xdg
DESCRIPTION="Gentoo Linux Calamares installer configuration for LiveCD"
HOMEPAGE="https://github.com/StefanCristian/calamares-gentoo-livecd"
SRC_URI="https://github.com/StefanCristian/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz
mirror://gentoo/gentoo-artwork-livecd-2007.0.tar.bz2
mirror://gentoo/gentoo-artwork-0.2.tar.bz2"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="app-admin/calamares[livecd(-)]"
src_prepare() {
default
local baselayout_version
baselayout_version=$(best_version sys-apps/baselayout)
baselayout_version=${baselayout_version#*layout-}
if [[ -n ${baselayout_version} ]]; then
sed -i "s|GENTOO_VERSION|${baselayout_version}|g" "${WORKDIR}/${P}/artwork/branding.desc" || die
fi
}