From 165d71585b31e1888c236303bc01c9a5f39bd250 Mon Sep 17 00:00:00 2001 From: xhaa123 Date: Tue, 19 Nov 2024 00:06:43 +0800 Subject: [PATCH] gnu-efi 3.0.17-1 --- PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 PKGBUILD diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..c53b59b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,39 @@ +# This is an example PKGBUILD file. Use this as a start to creating your own, +# and remove these comments. For more information, see 'man PKGBUILD'. +# NOTE: Please fill out the license field for your package! If it is unknown, +# then please put 'unknown'. + +# Maintainer: Future Linux Team +pkgname=gnu-efi +pkgver=3.0.17 +pkgrel=1 +pkgdesc="Develop EFI applications using the GNU toolchain and the EFI development environment" +arch=('x86_64') +url="https://sourceforge.net/projects/gnu-efi/" +license=('BSD') +options=('!lto' '!strip') +source=(https://download.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.bz2) +sha256sums=(7807e903349343a7a142ebb934703a2872235e89688cf586c032b0a1087bcaf4) + +prepare() { + cd ${pkgname}-${pkgver} + + sed -e 's/-Werror//g' -i Make.defaults +} + +build() { + cd ${pkgname}-${pkgver} + + CFLAGS="-O2" + + LDFLAGS="${LDFLAGS//-Wl/}" + LDFLAGS="${LDFLAGS//,/ }" + make + +} + +package() { + cd ${pkgname}-${pkgver} + + make INSTALLROOT=${pkgdir} PREFIX=/usr LIBDIR=/usr/lib64 install +}