description="Tool to modify UEFI Firmware Boot Manager Variables"
url="https://github.com/rhinstaller/efibootmgr"

packager="Great-OS Team"

makedepends=(efivar pciutils dosfstools popt)
run=(dosfstools)

PKGMK_KEEP_SOURCES="no"

name=efibootmgr
version=18
_commit=712aeb81311de28a3fcfea7465dcb93743f07a53
release=2

source=(https://github.com/rhboot/$name/archive/${_commit}.tar.gz)

build() {
  cd $name-${_commit}

  make libdir='/usr/lib' \
       sbindir='/usr/bin' \
       EFIDIR='/boot/efi'

  make DESTDIR="${PKG}" \
       libdir='/usr/lib' \
       sbindir='/usr/bin' \
       EFIDIR='/boot/efi' \
       install
}
