From 23b81c5106f26e276c5ab6ec815e18f99d3e7386 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?coadde=20=5BM=C3=A1rcio=20Alexandre=20Silva=20Delgado=5D?= Date: Tue, 25 Oct 2016 04:20:52 -0300 Subject: grub: disable xen support --- libre/grub/PKGBUILD | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'libre') diff --git a/libre/grub/PKGBUILD b/libre/grub/PKGBUILD index 609d94a88..0bfc61e40 100644 --- a/libre/grub/PKGBUILD +++ b/libre/grub/PKGBUILD @@ -4,6 +4,9 @@ # Maintainer: André Silva # Maintainer: Márcio Silva +## '1' to enable Xen support, '0' to disable +_XEN='0' # disabled, due it's fail to build + ## '1' to enable IA32-EFI build in Arch x86_64, '0' to disable _IA32_EFI_IN_ARCH_X64='1' @@ -47,7 +50,7 @@ depends=('sh' 'xz' 'gettext' 'device-mapper') makedepends=('git' 'rsync' 'xz' 'freetype2' 'ttf-dejavu' 'python' 'autogen' 'texinfo' 'help2man' 'gettext' 'device-mapper' 'fuse') -if [[ "${CARCH}" = 'x86_64' ]]; then +if [[ "${CARCH}" = 'x86_64' ]] && [[ "${_XEN}" = '1' ]]; then makedepends+=('xen') fi @@ -62,7 +65,7 @@ if [[ "${CARCH}" = 'x86_64' ]] || [[ "${CARCH}" = 'i686' ]]; then provides=('grub-common' 'grub-bios' 'grub-emu' "grub-efi-${_EFI_ARCH}") conflicts=('grub-common' 'grub-bios' 'grub-emu' "grub-efi-${_EFI_ARCH}" 'grub-legacy' 'grub-parabola') replaces=('grub-common' 'grub-bios' 'grub-emu' "grub-efi-${_EFI_ARCH}" 'grub-parabola') -elif [[ "$CARCH" = 'armv7h' ]]; then +elif [[ "${CARCH}" = 'armv7h' ]]; then provides=('grub-common' 'grub-emu' "grub-efi-${_EFI_ARCH}") conflicts=('grub-common' 'grub-emu' "grub-efi-${_EFI_ARCH}") replaces=('grub-common' 'grub-emu' "grub-efi-${_EFI_ARCH}") @@ -581,7 +584,7 @@ build() { fi if [[ "${CARCH}" = 'x86_64' ]] || [[ "${CARCH}" = 'i686' ]]; then - if [[ "${CARCH}" = 'x86_64' ]]; then + if [[ "${CARCH}" = 'x86_64' ]] && [[ "${_XEN}" = '1' ]]; then msg "Build grub ${_XEN_ARCH} XEN stuff" _build_grub-xen @@ -756,7 +759,7 @@ package_grub() { fi if [[ "${CARCH}" = 'x86_64' ]] || [[ "${CARCH}" = 'i686' ]]; then - if [[ "${CARCH}" = 'x86_64' ]]; then + if [[ "${CARCH}" = 'x86_64' ]] && [[ "${_XEN}" = '1' ]]; then msg "Package grub ${_XEN_ARCH} XEN stuff" _package_grub-xen -- cgit v1.2.2