Date: Friday, January 28, 2011 @ 14:51:23 Author: ronald Revision: 107992
add grub2 efi x86_64 support Added: grub2-efi-x86_64/ grub2-efi-x86_64/repos/ grub2-efi-x86_64/repos/PKGBUILD grub2-efi-x86_64/trunk/ ----------+ PKGBUILD | 72 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) Added: grub2-efi-x86_64/repos/PKGBUILD =================================================================== --- grub2-efi-x86_64/repos/PKGBUILD (rev 0) +++ grub2-efi-x86_64/repos/PKGBUILD 2011-01-28 19:51:23 UTC (rev 107992) @@ -0,0 +1,72 @@ +# Maintainer: Ronald van Haren <ronald.archlinux.org> +# Contributor: Keshav P R <skodabenz at rocketmail dot com> + +## This PKGBUILD has the same structure as the main grub2 split PKGBUILD for grub2-common, grub2-bios and grub2-efi-i386 . + +# _grub2_rev=3072 + +_grub2_lua_ver=19 +_grub2_gpxe_ver=12 + +pkgname="grub2-efi-x86_64" +pkgver=1.99rc1 +pkgrel=1 +pkgdesc="The GNU GRand Unified Bootloader version 2 - x86_64 UEFI version" +url="http://www.gnu.org/software/grub/" +arch=('any') +license=('GPL3') +depends=("grub2-common=${pkgver}" 'dosfstools') +optdepends=('efibootmgr') +makedepends=('python2' 'xz' 'autogen' 'texinfo' 'help2man' 'gettext') +options=(strip purge docs zipman !emptydirs) +groups=('grub2') +replaces=('grub2-efi-x64') + +source=("ftp://alpha.gnu.org/gnu/grub/grub-${pkgver}.tar.gz" + "ftp://ftp.archlinux.org/other/grub2/grub2_extras_lua_r${_grub2_lua_ver}.tar.xz" + "ftp://ftp.archlinux.org/other/grub2/grub2_extras_gpxe_r${_grub2_gpxe_ver}.tar.xz") + +noextract=("grub2_extras_lua_r${_grub2_lua_ver}.tar.xz" + "grub2_extras_gpxe_r${_grub2_gpxe_ver}.tar.xz") + + + +build() { + if [ "${CARCH}" = 'i686' ]; then + echo "This package can be built only in a x86_64 system. Exiting." + exit 1 + fi + + # add grub-extras + export GRUB_CONTRIB=${srcdir}/grub2_efi-${pkgver}/grub2-extras/ + install -d ${srcdir}/grub-${pkgver}/grub2-extras + bsdtar xf ${srcdir}/grub2_extras_lua_r${_grub2_lua_ver}.tar.xz \ + -C ${srcdir}/grub-${pkgver}/grub2-extras + bsdtar xf ${srcdir}/grub2_extras_gpxe_r${_grub2_gpxe_ver}.tar.xz \ + -C ${srcdir}/grub-${pkgver}/grub2-extras + + ## need to use python2 + sed -i 's|python|python2|' ${srcdir}/grub2-${pkgver}/autogen.sh + + # start the actual build process + cd ${srcdir}/grub2-${pkgver} + ./autogen.sh + CFLAGS="" ./configure --with-platform=efi \ + --target=x86_64 --host=${_HOST}-unknown-linux-gnu \ + --program-transform-name=s,grub,grub, \ + --enable-mm-debug --disable-efiemu \ + --enable-grub-mkfont --enable-nls \ + --prefix=/usr --bindir=/bin --sbindir=/sbin \ + --mandir=/usr/share/man --infodir=/usr/share/info \ + --sysconfdir=/etc + CFLAGS="" make +} + +package() { + cd ${srcdir}/grub2-${pkgver} + make DESTDIR=${pkgdir} install + + ## remove non platform-specific files + rm -rf ${pkgdir}/{boot,bin,sbin,etc,usr/share} + rm ${pkgdir}/usr/lib/grub/{grub-mkconfig_lib,update-grub_lib} +} Property changes on: grub2-efi-x86_64/repos/PKGBUILD ___________________________________________________________________ Added: svn:executable + *