template (1674B)
1 # Template file for 'efibootmgr' 2 pkgname=efibootmgr 3 version=18 4 revision=0 5 short_desc="EFI boot manager entries tool" 6 maintainer="finwo <finwo@pm.me>" 7 license="GPL-2.0-only" 8 homepage="https://github.com/rhboot/efibootmgr" 9 distfiles="https://github.com/rhboot/efibootmgr/archive/refs/tags/18.tar.gz" 10 checksum=442867d12f8525034a404fc8af3036dba8e1fc970998af2486c3b940dfad0874 11 # runtime links (readelf-proven at build): libefivar + libpopt. 12 depends="efivar popt" 13 makedepends="efivar popt" 14 15 # Notes: 16 # - No configure step; lowercase make vars (prefix/libdir/sbindir) plus 17 # EFIDIR, which configure-time *requires* (build errors without it). 18 # EFIDIR=unos matches install.sh --bootloader-id=unos, so the compiled 19 # DEFAULT_LOADER lands in the right directory (its `grub.efi` filename 20 # vs grub-install's `grubx64.efi` only matters for bare `efibootmgr` 21 # invocations; grub-install always passes an explicit loader path). 22 # - efivar + popt resolve from the sysroot via the driver PKG_CONFIG_PATH. 23 # - sbindir=/usr/sbin (admin tool, matches our layout). No post-install 24 # (no .so shipped). Needs efivarfs at RUNTIME (/sys/firmware/efi/efivars 25 # - the installer already binds /sys, which carries it on UEFI hosts); 26 # without it the tool errors clearly, it never silently no-ops. 27 28 do_build() { 29 cd "${WRKSRC}" 30 make -j"$(nproc)" prefix=/usr libdir=/usr/lib sbindir=/usr/sbin EFIDIR=unos 31 [ -x src/efibootmgr ] || die "efibootmgr: binary missing after build" 32 } 33 34 do_install() { 35 cd "${WRKSRC}" 36 make install prefix=/usr libdir=/usr/lib sbindir=/usr/sbin EFIDIR=unos DESTDIR="${DESTDIR}" 37 [ -x "${DESTDIR}/usr/sbin/efibootmgr" ] || die "efibootmgr: not installed" 38 }