# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gnu-efi
pkgver=3.0.4
pkgrel=1
pkgdesc="Development Libraries and headers for EFI"
url="ftp://ftp.hpl.hp.com/pub/linux-ia64"
arch="all !armhf !ppc64le !s390x"
license="BSD"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev"
depends_dev="$pkgname"
source="http://downloads.sourceforge.net/project/gnu-efi/gnu-efi-$pkgver.tar.bz2
	no-werror.patch
	"

builddir="$srcdir"/gnu-efi-${pkgver%[a-z]}

build() {
	cd "$builddir"
	make -j1 || return 1
}

package() {
	cd "$builddir"
	make PREFIX=/usr INSTALLROOT="$pkgdir" install || return 1
}

md5sums="612e0f327f31c4b8468ef55f4eeb9649  gnu-efi-3.0.4.tar.bz2
ebe85f7d7e98e5b9ae508af624fa65fe  no-werror.patch"
sha256sums="51a00428c3ccb96db24089ed8394843c4f83cf8f42c6a4dfddb4b7c23f2bf8af  gnu-efi-3.0.4.tar.bz2
1889f47ee38bbe2f1a7037c1eb484e5e14a8e8564892b1211721d689f4aad62c  no-werror.patch"
sha512sums="f4cf340223835883448c95e893501e9921f6bd869a475a0ba3ba0b8eaada184ebcf617a93c27875684fb0f94bfc6ea2a3b8388100cf67c751122fe86f6820cd0  gnu-efi-3.0.4.tar.bz2
52782bec03ea0c1b86150aca4fde726960b9b848996f422d53c78c8dac36ff365469e2c65ea03b5e540fe4bce0a2c747469aa1e81c8985f3315cb3545a786e24  no-werror.patch"
