summaryrefslogtreecommitdiff
path: root/libre/grub
diff options
context:
space:
mode:
Diffstat (limited to 'libre/grub')
-rw-r--r--libre/grub/PKGBUILD11
1 files changed, 7 insertions, 4 deletions
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 <emulatorman@parabola.nu>
# Maintainer: Márcio Silva <coadde@parabola.nu>
+## '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