diff options
-rw-r--r-- | user/gnu-efi/APKBUILD | 27 | ||||
-rw-r--r-- | user/gnu-efi/no-werror.patch | 17 |
2 files changed, 44 insertions, 0 deletions
diff --git a/user/gnu-efi/APKBUILD b/user/gnu-efi/APKBUILD new file mode 100644 index 000000000..1956dce71 --- /dev/null +++ b/user/gnu-efi/APKBUILD @@ -0,0 +1,27 @@ +# Contributor: Max Rees <maxcrees@me.com> +# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house> +pkgname=gnu-efi +pkgver=3.0.17 +pkgrel=0 +pkgdesc="SDK for EFI applications" +url="https://sourceforge.net/projects/gnu-efi/" +# MIPS is also supported allegedly, if we ever ship that +arch="aarch64 armv7 pmmx x86 x86_64" +options="!dbg !check" # No test suite, and static libraries only. +license="(BSD-2-Clause OR GPL-2.0+) AND BSD-3-Clause AND MIT AND BSD-4-Clause" +depends="" +makedepends="" +source="https://downloads.sourceforge.net/gnu-efi/gnu-efi-$pkgver.tar.bz2 + no-werror.patch" + +build() { + export LDFLAGS="--as-needed" + make +} + +package() { + make install PREFIX=/usr INSTALLROOT="$pkgdir" +} + +sha512sums="0893ca234272584f889b1ae1c75341a9ceee60acfd32765daa5d704191ba00450536a287b949304c6d055d1bf125cc29e24fc41df8e5230e0da4f9d944876512 gnu-efi-3.0.17.tar.bz2 +80018c28002752895b4bd7d4e8f3b7c4b2df288a687d96f3434e4645f53bcd6c56312022740ff5e5b5fac8edf2736277fd287e02268778f222da87c81c95b793 no-werror.patch" diff --git a/user/gnu-efi/no-werror.patch b/user/gnu-efi/no-werror.patch new file mode 100644 index 000000000..ba5bd0b5c --- /dev/null +++ b/user/gnu-efi/no-werror.patch @@ -0,0 +1,17 @@ +diff '--color=auto' -Nurd gnu-efi-3.0.17/Make.defaults gnu-efi-3.0.17.new/Make.defaults +--- gnu-efi-3.0.17/Make.defaults 2023-05-02 04:51:45.000000000 -0700 ++++ gnu-efi-3.0.17.new/Make.defaults 2023-11-10 21:40:26.827760725 -0800 +@@ -183,11 +183,11 @@ + endif + + ifeq (FreeBSD, $(findstring FreeBSD, $(OS))) +-CFLAGS += $(ARCH3264) -g -O2 -Wall -Wextra -Werror \ ++CFLAGS += $(ARCH3264) -g -O2 -Wall -Wextra \ + -funsigned-char -fshort-wchar -fno-strict-aliasing \ + -ffreestanding -fno-stack-protector + else +-CFLAGS += $(ARCH3264) -g -O2 -Wall -Wextra -Wno-pointer-sign -Werror \ ++CFLAGS += $(ARCH3264) -g -O2 -Wall -Wextra -Wno-pointer-sign \ + -funsigned-char -fshort-wchar -fno-strict-aliasing \ + -ffreestanding -fno-stack-protector -fno-stack-check \ + -fno-stack-check \ |