[arch-commits] Commit in grub2-efi-x86_64/repos/testing-any (PKGBUILD)

Ronald van Haren ronald at archlinux.org
Fri Jan 28 16:39:48 EST 2011


    Date: Friday, January 28, 2011 @ 16:39:47
  Author: ronald
Revision: 108010

add PKGBUILD to repo dir

Added:
  grub2-efi-x86_64/repos/testing-any/PKGBUILD

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

Added: PKGBUILD
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2011-01-28 21:39:47 UTC (rev 108010)
@@ -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=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)
+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_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}/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/repos/testing-any/PKGBUILD
___________________________________________________________________
Added: svn:executable
   + *



More information about the arch-commits mailing list