[arch-commits] Commit in grub2-efi-x86_64/trunk (PKGBUILD)

Ronald van Haren ronald at archlinux.org
Sat Jan 29 06:36:41 UTC 2011


    Date: Saturday, January 29, 2011 @ 01:36:40
  Author: ronald
Revision: 108039

upgpkg: grub2-efi-x86_64 1.99~rc1-2
fix typo; add PKGBUILD to trunk

Added:
  grub2-efi-x86_64/trunk/PKGBUILD

----------+
 PKGBUILD |   73 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 73 insertions(+)

Added: PKGBUILD
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2011-01-29 06:36:40 UTC (rev 108039)
@@ -0,0 +1,73 @@
+# 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.99~rc1
+pkgrel=2
+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)
+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")
+
+sha1sums=('866b6979974ad7209d236cb4e1819039f0bd1c6d'
+          'f116fed72eb70da1d503cf3c225dce68d658dabd'
+          'b04994c005910b4bf123f034b30109d5c8d6fd86')
+
+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-${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}/grub-${pkgver}/autogen.sh
+  
+	# start the actual build process
+	cd ${srcdir}/grub-${pkgver}
+	./autogen.sh
+	CFLAGS="" ./configure --with-platform=efi \
+		--target=x86_64 --host=${CARCH}-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}/grub-${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/trunk/PKGBUILD
___________________________________________________________________
Added: svn:executable
   + *




More information about the arch-commits mailing list