diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-04-08 06:31:00 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-04-08 06:31:00 +0100 |
commit | 102dc42fae2907037d3ca9a6d63ed28e46c5b88e (patch) | |
tree | 5302a53ecdd7408812596fcbd8cbaa90bd8e6c98 /sys-apps/fwupd-efi/fwupd-efi-1.5.ebuild | |
parent | 4d190a87291ace8503ad92c6b049d14660a14c72 (diff) |
gentoo auto-resync : 08:04:2024 - 06:31:00
Diffstat (limited to 'sys-apps/fwupd-efi/fwupd-efi-1.5.ebuild')
-rw-r--r-- | sys-apps/fwupd-efi/fwupd-efi-1.5.ebuild | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/sys-apps/fwupd-efi/fwupd-efi-1.5.ebuild b/sys-apps/fwupd-efi/fwupd-efi-1.5.ebuild new file mode 100644 index 000000000000..a136dde4ec54 --- /dev/null +++ b/sys-apps/fwupd-efi/fwupd-efi-1.5.ebuild @@ -0,0 +1,62 @@ +# Copyright 2021-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} ) + +inherit meson python-any-r1 secureboot + +DESCRIPTION="EFI executable for fwupd" +HOMEPAGE="https://fwupd.org" + +if [[ ${PV} = *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/fwupd/fwupd-efi.git" +else + SRC_URI="https://github.com/fwupd/${PN}/releases/download/${PV}/${P}.tar.xz" + KEYWORDS="~amd64 ~arm ~arm64 ~x86" +fi + +LICENSE="LGPL-2.1+" +SLOT="0" + +BDEPEND="$(python_gen_any_dep ' + dev-python/pefile[${PYTHON_USEDEP}] + ') + virtual/pkgconfig" + +DEPEND="sys-boot/gnu-efi" + +python_check_deps() { + python_has_version "dev-python/pefile[${PYTHON_USEDEP}]" +} + +pkg_setup() { + python-any-r1_pkg_setup + secureboot_pkg_setup +} + +src_prepare() { + default + + python_fix_shebang "${S}/efi" +} + +src_configure() { + local emesonargs=( + -Defi-libdir="${EPREFIX}"/usr/$(get_libdir) + -Defi_sbat_distro_id="gentoo" + -Defi_sbat_distro_summary="Gentoo GNU/Linux" + -Defi_sbat_distro_pkgname="${PN}" + -Defi_sbat_distro_version="${PVR}" + -Defi_sbat_distro_url="https://packages.gentoo.org/packages/${CATEGORY}/${PN}" + ) + + meson_src_configure +} + +src_install() { + meson_src_install + secureboot_auto_sign +} |