2014-01-11 17:48:19 +01:00
|
|
|
# Template file for 'gnu-efi-libs'
|
|
|
|
pkgname=gnu-efi-libs
|
2014-09-04 21:04:11 +02:00
|
|
|
version=3.0w
|
2014-01-11 17:48:19 +01:00
|
|
|
revision=1
|
2014-09-04 21:04:11 +02:00
|
|
|
wrksrc="gnu-efi-${version/w/}"
|
2014-01-11 17:48:19 +01:00
|
|
|
makedepends="pciutils-devel"
|
|
|
|
nostrip=yes
|
|
|
|
short_desc="Library for building UEFI Applications using GNU toolchain"
|
2015-04-10 09:16:30 +02:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2014-01-11 17:48:19 +01:00
|
|
|
license="GPL-2"
|
|
|
|
homepage="http://sourceforge.net/projects/gnu-efi/"
|
|
|
|
distfiles="${SOURCEFORGE_SITE}/gnu-efi/gnu-efi_${version}.orig.tar.gz"
|
2014-09-04 21:04:11 +02:00
|
|
|
checksum=d5c5ca168d25bb54ea936a25175d7626778001f788bddc60dbed103874583621
|
2014-01-11 17:48:19 +01:00
|
|
|
|
|
|
|
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}
|
|
|
|
}
|