# Description: Manipulate efi boot managers # URL: # Maintainer: Emmett1, emmett1 dot 2miligrams at gmail dot com # Depends on: efivar pciutils name=efibootmgr version=17 release=1 source=(https://github.com/rhboot/efibootmgr/archive/$version/$name-$version.tar.gz efivar.patch) build() { cd $name-$version patch -Np1 -i $SRC/efivar.patch export CFLAGS="${CFLAGS} -Wno-error=pointer-sign" # removing hotfix function declaration: # https://github.com/rhboot/efibootmgr/issues/128 sed -e '/extern int efi_set_verbose/d' -i "src/$name.c" EFIDIR=/boot/efi make install -D src/efibootmgr $PKG/usr/sbin/efibootmgr install -D src/efibootmgr.8 $PKG/usr/share/man/man8/efibootmgr.8 }