# Template file for 'efibootmgr'
pkgname=efibootmgr
version=0.11.0
revision=5
build_pie=yes
makedepends="libefivar-devel zlib-devel pciutils-devel"
short_desc="Tool to modify UEFI Firmware Boot Manager Variables"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2"
homepage="https://github.com/vathpela/efibootmgr"
distfiles="https://github.com/vathpela/efibootmgr/releases/download/efibootmgr-${version}/efibootmgr-${version}.tar.bz2"
checksum=f27ce3d7588512017bceb2d2a29aef110499a662a21550afa1158f9950f976d1

only_for_archs="i686 i686-musl x86_64 x86_64-musl"

do_build() {
	make EXTRA_CFLAGS="$CFLAGS" ${makejobs}
}
do_install() {
	vbin src/efibootmgr/efibootmgr
	vman src/man/man8/efibootmgr.8
}
