Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=b4d1f15e37c2a3ca6cc202e48789b98f9b61044e

commit b4d1f15e37c2a3ca6cc202e48789b98f9b61044e
Author: Michel Hermier <herm...@frugalware.org>
Date:   Tue Apr 26 19:25:34 2011 +0200

grub2-1.99~rc2-1-i686

* New package.
* Lets not wet our pants for now, let make it no build. So that people
with knowledge test it for now.

diff --git a/source/base-extra/grub2/FrugalBuild 
b/source/base-extra/grub2/FrugalBuild
new file mode 100644
index 0000000..1e32c85
--- /dev/null
+++ b/source/base-extra/grub2/FrugalBuild
@@ -0,0 +1,50 @@
+# Compiling time: 0.29 SBU
+# Maintainer: Michel Hermier <herm...@frugalware.org>
+
+USE_DEVEL=${USE_DEVEL:-"n"}
+
+pkgname=grub2
+_F_archive_name=grub
+pkgver=1.99~rc2
+pkgrel=1
+pkgdesc="The GNU GRand Unified Bootloader"
+url="http://www.gnu.org/software/grub/";
+conflicts=('grub')
+depends=('lzo')
+[ "$CARCH" == "i686" ] && depends=(${depends[@]} 'freetype2' 'mktemp' 
'ncurses')
+[ "$CARCH" == "x86_64" ] && makedepends=(${makedepends[@]} 'freetype2' 
'ncurses' 'mktemp')
+#rodepends=('grub-theme-frugalware')
+groups=('base-extra')
+archs=('i686' 'x86_64')
+options=('nobuild')
+
+if ! Fuse DEVEL; then
+       up2date="Flasttar ftp://alpha.gnu.org/gnu/grub/";
+       
source=("ftp://alpha.gnu.org/gnu/grub/$_F_archive_name-$pkgver$pkgextraver.tar.xz";)
+       signatures=("${source[@]}.sig")
+else
+       pkgver="$pkgver.bzr3092"
+       _F_scm_type="bzr"
+       _F_scm_url="http://bzr.savannah.gnu.org/r/grub/trunk/grub/";
+       Finclude scm
+
+       makedepends=("${makedepends[@]}" 'autogen')
+fi
+
+build()
+{
+       if Fuse DEVEL; then
+               Funpack_scm
+               ./autogen.sh || Fdie
+       fi
+       # see http://savannah.gnu.org/bugs/?func=detailitem&item_id=14874
+       CFLAGS=${CFLAGS/O?/O2}
+       # note that this should NOT build on a real x86_64 box
+       [ "$CARCH" == "x86_64" ] && CFLAGS="$CFLAGS -static"
+
+       # netboot
+       Fbuild --libdir=/lib --datadir=/usr/lib/grub --exec-prefix=/
+}
+
+# optimization OK
+
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to