summaryrefslogtreecommitdiff
path: root/extra/gnu-efi/PKGBUILD
blob: 35e433aaf4e1a73afb9a1f08421f69b1a05d6f10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# $Id: PKGBUILD 160800 2012-06-06 10:29:37Z tpowa $
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
# Maintainer : Keshav P R <(the.ridikulus.rat) (aatt) (gemmaeiil) (ddoott) (ccoomm)>
# Contributor: Alessio 'mOLOk' Bolognino <themolok@gmail.com>

_pkgname="gnu-efi"
_ver="3.0"
_pkgver="${_ver}q"
pkgname="${_pkgname}"
pkgver="${_pkgver}"
pkgrel=1
pkgdesc="Library for building UEFI Applications using GNU toolchain"
url="http://sourceforge.net/projects/gnu-efi/"
license=('GPL')
arch=('i686' 'x86_64')
makedepends=()
depends=('pciutils')
source=("http://download.sourceforge.net/gnu-efi/gnu-efi_${pkgver}.orig.tar.gz")
options=(!strip !makeflags)

build() {
	cd "${srcdir}/gnu-efi-${_ver}"	
	sed 's|-fno-strict-aliasing|-fno-strict-aliasing -fno-stack-protector|g' -i "${srcdir}/gnu-efi-${_ver}/Make.defaults" || true
	CFLAGS="" make
	make -C apps clean all
}

package() {	
	cd "${srcdir}/gnu-efi-${_ver}"
	make INSTALLROOT="${pkgdir}/usr/" install
	install -d "${pkgdir}/usr/share/gnu-efi/"
	install -D -m0644 "${srcdir}/gnu-efi-${_ver}/apps"/*.efi "${pkgdir}/usr/share/gnu-efi/"
}
md5sums=('698d93490e0c0171aa0e2a8eda44209f')