# 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 }