Fix spkgbuild

This commit is contained in:
Luis
2022-06-06 18:30:33 +02:00
parent 78e84a4238
commit ad3ad7ca7b
2 changed files with 6 additions and 1 deletions

View File

@@ -1,3 +1,4 @@
efibootmgr-17-1
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/sbin/
-rwxr-xr-x root/root usr/sbin/efibootmgr

View File

@@ -10,7 +10,11 @@ source="$name-$version.tar.gz::https://github.com/rhboot/efibootmgr/archive/$ver
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