diff options
author | Iru Cai | 2016-03-07 21:36:52 +0800 |
---|---|---|
committer | Iru Cai | 2016-03-07 21:36:52 +0800 |
commit | c5431051b4ffa05c4e76d8392a41d8fa556c1e75 (patch) | |
tree | 877f99f53e19ec9b04b5d89c312cc4e9e977472e | |
download | aur-c5431051b4ffa05c4e76d8392a41d8fa556c1e75.tar.gz |
lib32-gnu-efi-libs: initial commit
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 37 |
2 files changed, 55 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..cbfcce62da7f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +# Generated by mksrcinfo v8 +# Mon Mar 7 13:36:38 UTC 2016 +pkgbase = lib32-gnu-efi-libs + pkgdesc = Library for building UEFI Applications using GNU toolchain + pkgver = 3.0.3 + pkgrel = 1 + url = http://sourceforge.net/projects/gnu-efi/ + arch = x86_64 + license = GPL + makedepends = pciutils + options = !strip + options = !makeflags + options = !buildflags + source = http://download.sourceforge.net/gnu-efi/gnu-efi-3.0.3.tar.bz2 + md5sums = 15a4bcbc18a9a5e8110ed955970622e6 + +pkgname = lib32-gnu-efi-libs + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..8e942720614b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Tobias Powalowski <tpowa@archlinux.org> +# Contributor: Keshav Amburay <(the ddoott ridikulus ddoott rat) (aatt) (gemmaeiil) (ddoott) (ccoomm)> +# Contributor: Alessio 'mOLOk' Bolognino <themolok@gmail.com> + +_EFI_ARCH="ia32" + +_pkgver="3.0.3" +pkgname="lib32-gnu-efi-libs" +pkgver="${_pkgver}" +pkgrel="1" +pkgdesc="Library for building UEFI Applications using GNU toolchain" +url="http://sourceforge.net/projects/gnu-efi/" +license=('GPL') +arch=('x86_64') +options=('!strip' '!makeflags' '!buildflags') +makedepends=('pciutils') +source=("http://download.sourceforge.net/gnu-efi/gnu-efi-${pkgver}.tar.bz2") +md5sums=('15a4bcbc18a9a5e8110ed955970622e6') + +# override the CFLAGS to build a libefi compatible with i586 +_CFLAGS="-march=i586 -mtune=i586 -fno-stack-protector" + +build() { + cd "${srcdir}/gnu-efi-${_pkgver}/" + + CFLAGS="${_CFLAGS}" make ARCH=ia32 lib gnuefi inc apps +} + +package() { + cd "${srcdir}/gnu-efi-${_pkgver}/" + + CFLAGS="${_CFLAGS}" make ARCH=ia32 INSTALLROOT="${pkgdir}" PREFIX="/usr" LIBDIR="/usr/lib32" install + rm -rf "${pkgdir}/usr/include/efi"/{*.h,protocol} + + install -d "${pkgdir}/usr/share/gnu-efi/apps/${_EFI_ARCH}/" + install -D -m0644 "${srcdir}/gnu-efi-${_pkgver}/${_EFI_ARCH}/apps"/*.efi "${pkgdir}/usr/share/gnu-efi/apps/${_EFI_ARCH}/" +} |