overlay/sys-apps/fwupd/templates/fwupd-efi.tmpl
Gerardo J. Puerta 2a9e3df414 Totem building
2022-10-24 18:40:01 +02:00

49 lines
856 B
Cheetah

# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( {{python_compat}} )
inherit meson python-any-r1 toolchain-funcs
DESCRIPTION="EFI executable for fwupd"
HOMEPAGE="https://fwupd.org"
SRC_URI="{{artifacts[0].src_uri}}"
LICENSE="LGPL-2.1+"
SLOT="0"
KEYWORDS="*"
IUSE=""
BDEPEND="
${PYTHON_DEPS}
virtual/pkgconfig
"
DEPEND="sys-boot/gnu-efi"
RDEPEND="!<sys-apps/fwupd-1.6.0"
post_src_unpack() {
if [ ! -d "${S}" ]; then
mv {{ github_user }}-{{ github_repo }}* "${S}" || die
fi
}
src_prepare() {
default
python_fix_shebang "${S}/efi"
}
src_configure() {
local emesonargs=(
-Defi-cc="$(tc-getCC)"
-Defi-ld="$(tc-getLD)"
-Defi_sbat_distro_id="funtoo"
-Defi_sbat_distro_summary="Funtoo GNU/Linux"
-Defi_sbat_distro_pkgname="${PN}"
-Defi_sbat_distro_version="${PVR}"
)
meson_src_configure
}