summaryrefslogtreecommitdiffstats
path: root/base/grub/Pkgfile
diff options
context:
space:
mode:
authorThierry N <thierryn1 at hispeed dot ch>2009-09-29 22:25:04 +0200
committerThierry N <thierryn1 at hispeed dot ch>2009-09-29 22:25:04 +0200
commitdb1a4fad0b393a13b038f2f07106df13f9ef1c3c (patch)
tree4714dc25bc54bf0d418cd38f70c6b832bb362949 /base/grub/Pkgfile
parentb5e9ff0e7ecc1aa1d035002858aea4df08c86ad8 (diff)
downloadnutyx-pakxe-db1a4fad0b393a13b038f2f07106df13f9ef1c3c.tar.gz
nutyx-pakxe-db1a4fad0b393a13b038f2f07106df13f9ef1c3c.tar.bz2
nutyx-pakxe-db1a4fad0b393a13b038f2f07106df13f9ef1c3c.tar.xz
nutyx-pakxe-db1a4fad0b393a13b038f2f07106df13f9ef1c3c.zip
grub, maj grub#0.97-4
Diffstat (limited to 'base/grub/Pkgfile')
-rwxr-xr-xbase/grub/Pkgfile19
1 files changed, 10 insertions, 9 deletions
diff --git a/base/grub/Pkgfile b/base/grub/Pkgfile
index 512a0da8e..bf16bc3f2 100755
--- a/base/grub/Pkgfile
+++ b/base/grub/Pkgfile
@@ -6,7 +6,7 @@
name=grub
version=0.97
-release=3
+release=4
source=(ftp://alpha.gnu.org/gnu/$name/$name-$version.tar.gz\
http://www.linuxfromscratch.org/patches/lfs/development/grub-0.97-disk_geometry-1.patch \
http://www.linuxfromscratch.org/patches/lfs/development/grub-0.97-256byte_inode-1.patch \
@@ -21,10 +21,9 @@ source=(ftp://alpha.gnu.org/gnu/$name/$name-$version.tar.gz\
http://www.nutyx.org/files/patchs/grub/grub-gfxmenu-v8.diff \
http://www.nutyx.org/files/patchs/grub/grub-a20.patch \
http://www.nutyx.org/files/patchs/grub/ext4.patch \
+ http://www.nutyx.org/files/patchs/grub/grub-0.97-btrfs-2.patch \
http://aur.archlinux.org/packages/grub-gfxboot/grub-gfxboot/02-grub-$version-debugcdboot.patch\
- http://aur.archlinux.org/packages/grub-gfx/grub-gfx/grub-0.97-graphics.patch \
-
- message )
+ http://aur.archlinux.org/packages/grub-gfx/grub-gfx/grub-0.97-graphics.patch )
build() {
cd $name-$version
patch -Np1 -i ../$name-$version-path-patch
@@ -40,19 +39,21 @@ build() {
patch -Np1 -i ../$name-$version-256byte_inode-1.patch
patch -Np1 -i ../ext4.patch
+# patch -Np1 -i ../grub-0.97-btrfs-2.patch
unset CXXFLAGS
unset CFLAGS
+ if [ "`uname -m`" == "x86_64" ]; then
+ echo "Ce paquet doit être builder dans i686"
+ echo 'Ajouter CFLAGS="-static" avant ./configure'
+ echo 'CFLAGS="-static" ./configure --prefix=/usr'
+ exit 1
+ fi
./configure --prefix=/usr \
--mandir=/usr/share/man \
--infodir=/usr/share/info
make
make DESTDIR=$PKG install
- install -d $PKG/boot/grub
install -d $PKG/usr/share
- cp -v ../message $PKG/boot/
- cp -v $PKG/usr/lib/grub/i386-pc/stage{1,2} $PKG/boot/grub
- cp -v $PKG/usr/lib/grub/i386-pc/e2fs_stage1_5 $PKG/boot/grub
- cp -v $PKG/usr/lib/grub/i386-pc/reiserfs_stage1_5 $PKG/boot/grub
if [ -f $PKG/usr/share/info/dir ]; then
rm $PKG/usr/share/info/dir
fi