pkgname=gnu-efi pkgver=3.0.18 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-2-Clause') options=('!lto') source=(https://download.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.bz2) sha256sums=(7f212c96ee66547eeefb531267b641e5473d7d8529f0bd8ccdefd33cf7413f5c) prepare() { cd ${pkgname}-${pkgver} sed -e 's/-Werror//g' -i Make.defaults } build() { cd ${pkgname}-${pkgver} CFLAGS="-O2" LDFLAGS="${LDFLAGS//-Wl/}" LDFLAGS="${LDFLAGS//,/ }" make CC=${CHOST}-gcc PREFIX=/usr } package() { cd ${pkgname}-${pkgver} make INSTALLROOT=${pkgdir} PREFIX=/usr LIBDIR=/usr/lib64 install }