eth0s/ports/core/efibootmgr/Pkgfile

27 lines
716 B
Text
Raw Normal View History

2019-10-10 17:43:15 +08:00
# Description: Manipulate efi boot managers
# URL:
2019-11-10 23:58:56 +08:00
# Maintainer: Emmett1, emmett1 dot 2miligrams at gmail dot com
2019-10-10 17:43:15 +08:00
# Depends on: efivar pciutils
name=efibootmgr
2020-11-13 13:58:01 +08:00
version=17
2019-10-10 17:43:15 +08:00
release=1
2020-11-13 13:58:01 +08:00
source=(https://github.com/rhboot/efibootmgr/archive/$version/$name-$version.tar.gz
efivar.patch)
2019-10-10 17:43:15 +08:00
build() {
cd $name-$version
2020-11-13 13:58:01 +08:00
patch -Np1 -i $SRC/efivar.patch
2022-04-09 08:19:46 +08:00
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"
2019-10-10 17:43:15 +08:00
EFIDIR=/boot/efi make
install -D src/efibootmgr $PKG/usr/sbin/efibootmgr
install -D src/efibootmgr.8 $PKG/usr/share/man/man8/efibootmgr.8
}