2006-12-04 14:47:36 +00:00
|
|
|
|
# Description: GNU GRUB (GRand Unified Bootloader)
|
|
|
|
|
# URL: http://www.gnu.org/software/grub/
|
|
|
|
|
# Packager: Daniel M<>ller, daniel at danm dot de
|
2008-06-19 22:45:52 +10:00
|
|
|
|
# Maintainer: Lucas Hazel, lucas at die dot net dot au
|
2008-02-06 10:50:46 -05:00
|
|
|
|
# Depends on: gettext
|
2006-12-04 14:47:36 +00:00
|
|
|
|
|
|
|
|
|
name=grub
|
|
|
|
|
version=0.97
|
2008-03-22 07:41:54 -04:00
|
|
|
|
release=5
|
2006-12-04 14:47:36 +00:00
|
|
|
|
source=(ftp://alpha.gnu.org/gnu/grub/$name-$version.tar.gz \
|
2008-03-19 12:36:46 -04:00
|
|
|
|
http://crux.nu/files/grub/0.97/$name-$version-patches-2.tar.bz2 \
|
2006-12-04 14:47:36 +00:00
|
|
|
|
http://crux.nu/files/grub/common/crux02.xpm.gz \
|
|
|
|
|
http://crux.nu/files/grub/common/crux03.xpm.gz \
|
2008-03-22 07:41:54 -04:00
|
|
|
|
menu.lst.sample)
|
2006-12-04 14:47:36 +00:00
|
|
|
|
|
|
|
|
|
build () {
|
|
|
|
|
cd $name-$version
|
|
|
|
|
|
|
|
|
|
# automake 1.10 fix
|
|
|
|
|
sed -i '19i\AM_PROG_AS' configure.ac
|
|
|
|
|
|
2008-03-19 12:36:46 -04:00
|
|
|
|
for i in $SRC/*.patch; do
|
|
|
|
|
patch -p1 -i $i
|
2006-12-04 14:47:36 +00:00
|
|
|
|
done
|
|
|
|
|
|
2008-03-19 12:36:46 -04:00
|
|
|
|
# We really shouldn't optimise GRUB at all.
|
|
|
|
|
unset CXXFLAGS
|
|
|
|
|
unset CFLAGS
|
2006-12-04 14:47:36 +00:00
|
|
|
|
|
|
|
|
|
autoreconf --install --force
|
|
|
|
|
|
|
|
|
|
./configure --prefix=/usr \
|
2008-03-22 07:41:54 -04:00
|
|
|
|
--libdir=/usr/share \
|
2006-12-04 14:47:36 +00:00
|
|
|
|
--mandir=/usr/man \
|
|
|
|
|
--sbindir=/sbin \
|
|
|
|
|
--disable-nls \
|
|
|
|
|
--disable-auto-linux-mem-opt
|
|
|
|
|
|
|
|
|
|
make
|
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
|
rm -rf $PKG/usr/share/info
|
|
|
|
|
|
|
|
|
|
mkdir -p $PKG/boot/grub
|
2008-03-22 07:41:54 -04:00
|
|
|
|
install -m 644 $SRC/{crux*,menu.lst.sample} $PKG/boot/grub/
|
2006-12-04 14:47:36 +00:00
|
|
|
|
}
|