void-packages/srcpkgs/efibootmgr/template
Christopher Brannon 8e5f9e9679 efibootmgr: make modifying of boot records optional, disabled by default.
Also changed the name of the config file, since the syntax
is much different.
2016-11-13 22:56:45 -08:00

32 lines
1.1 KiB
Bash

# Template file for 'efibootmgr'
pkgname=efibootmgr
version=0.12
revision=3
hostmakedepends="pkg-config"
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/rhinstaller/efibootmgr"
distfiles="https://github.com/rhinstaller/efibootmgr/releases/download/efibootmgr-${version}/efibootmgr-${version}.tar.bz2"
checksum=a66f5850677e86255d93cb1cead04c3c48a823a2b864c579321f2a07f00256e6
only_for_archs="i686 i686-musl x86_64 x86_64-musl"
conf_files="/etc/default/efibootmgr-kernel-hook"
do_build() {
make EXTRA_CFLAGS="$CFLAGS" ${makejobs}
}
do_install() {
vbin src/efibootmgr/efibootmgr
vman src/man/man8/efibootmgr.8
}
post_install() {
vlicense COPYING
vmkdir etc/
vinstall "${FILESDIR}/efibootmgr-kernel-hook.confd" 644 etc/default efibootmgr-kernel-hook
vinstall ${FILESDIR}/kernel.d/efibootmgr.post-install 744 \
etc/kernel.d/post-install 50-efibootmgr
vinstall ${FILESDIR}/kernel.d/efibootmgr.post-remove 744 \
etc/kernel.d/post-remove 50-efibootmgr
}