New package: gnu-efi-libs-3.0u.

This commit is contained in:
Juan RP 2014-01-11 17:48:19 +01:00
parent 4bc743cc81
commit 750206c539
1 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,30 @@
# Template file for 'gnu-efi-libs'
pkgname=gnu-efi-libs
version=3.0u
revision=1
wrksrc="gnu-efi-${version/u/}"
makedepends="pciutils-devel"
nostrip=yes
short_desc="Library for building UEFI Applications using GNU toolchain"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2"
homepage="http://sourceforge.net/projects/gnu-efi/"
distfiles="${SOURCEFORGE_SITE}/gnu-efi/gnu-efi_${version}.orig.tar.gz"
checksum=3c0d450d5829204ca05dcb3b2aae772e52c379b7c7e09146759c6315606f934e
do_build() {
unset CFLAGS CXXFLAGS CPPFLAGS LDFLAGS
make
make -C apps all
}
do_install() {
make INSTALLROOT=${DESTDIR} PREFIX=/usr LIBDIR=/usr/lib install
case "$XBPS_TARGET_MACHINE" in
i686*) _EFI_ARCH="ia32";;
x86_64*) _EFI_ARCH="x86_64";;
esac
vmkdir usr/share/gnu-efi/apps/${_EFI_ARCH}
install -Dm644 apps/*.efi ${DESTDIR}/usr/share/gnu-efi/apps/${_EFI_ARCH}
}