# Description: Tool to modify UEFI Firmware Boot Manager Variables # URL: https://github.com/rhinstaller/efibootmgr # Maintainer: protonesso, nagakamira at gmail dot com # Depends on: libz dosfstools efivar # Section: utils name=efibootmgr version=17 release=2 source=("https://github.com/rhboot/efibootmgr/archive/$version.tar.gz::archive=$name-$version.tar.gz") build() { cd "$SRC"/$name-$version patch -Np1 -i "$STUFF"/efibootmgr/efivar.patch patch -Np1 -i "$STUFF"/efibootmgr/efibootmgr-17-clang.patch make EXTRA_CFLAGS="-Os" EFIDIR=/boot/EFI install -d "$PKG"/usr/bin/ install -D -m0755 src/efibootmgr "$PKG"/usr/bin/efibootmgr }