void-packages/srcpkgs/gnu-efi-libs/template

31 lines
859 B
Text
Raw Normal View History

2014-01-11 16:48:19 +00:00
# Template file for 'gnu-efi-libs'
pkgname=gnu-efi-libs
2014-05-28 20:06:28 +00:00
version=3.0v
2014-01-11 16:48:19 +00:00
revision=1
2014-05-28 20:06:28 +00:00
wrksrc="gnu-efi-${version/v/}"
2014-01-11 16:48:19 +00:00
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"
2014-05-28 20:06:28 +00:00
checksum=c776f98d671086e44503f0dc2809151638d395681fe8011f5affd09452bd0fdf
2014-01-11 16:48:19 +00: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}
}