summaryrefslogtreecommitdiff
path: root/grub/Pkgfile
blob: 0c4aa1d95e5c2d94eec19c9826e56271f0759fea (plain)
    1 # Description: GNU GRUB (GRand Unified Bootloader)
    2 # URL: http://www.gnu.org/software/grub/
    3 # Packager: Lucas Hazel, lucas at die dot net dot au
    4 # Maintainer: Alan Mizrahi, alan at mizrahi dot com dot ve
    5 # Depends on: gettext
    6 
    7 name=grub
    8 version=0.97
    9 release=7
   10 source=(ftp://alpha.gnu.org/gnu/grub/$name-$version.tar.gz \
   11 	http://crux.nu/files/grub/0.97/$name-$version-patches-2.tar.bz2 \
   12 	ext4.patch \
   13 	automake.patch \
   14 	http://crux.nu/files/grub/common/crux02.xpm.gz \
   15 	http://crux.nu/files/grub/common/crux03.xpm.gz \
   16 	menu.lst.sample)
   17 
   18 build () {
   19 	cd $name-$version
   20 
   21 	# automake 1.10 fix
   22 	sed -i '19i\AM_PROG_AS' configure.ac
   23 
   24 	for i in $SRC/*.patch; do
   25 	 patch -p1 -i $i
   26 	done
   27 
   28 	# We really shouldn't optimise GRUB at all.
   29 	unset CXXFLAGS
   30 	unset CFLAGS
   31     
   32 	autoreconf --install --force
   33 
   34 	./configure --prefix=/usr \
   35 		--libdir=/usr/share \
   36 		--mandir=/usr/man \
   37 		--sbindir=/sbin \
   38 		--disable-nls \
   39 		--disable-auto-linux-mem-opt 
   40 		
   41 	make
   42 	make DESTDIR=$PKG install
   43 	rm -rf $PKG/usr/share/info
   44 
   45 	mkdir -p $PKG/boot/grub
   46 	install -m 644 $SRC/{crux*,menu.lst.sample} $PKG/boot/grub/
   47 }

Generated by cgit