# Contributor: Mario A. Vazquez # Contributor: wain pkgname=grub-gfx-reiser4 pkgver=0.97 pkgrel=3 pkgdesc="A GNU multiboot boot loader with graphic splash patch and reiser4" url="http://www.gnu.org/software/grub/" depends=('ncurses') conflicts=('grub' 'grub-gfx') source=(ftp://alpha.gnu.org/gnu/grub/grub-$pkgver.tar.gz \ http://archiwain.free.fr/repository/grub-gfx-reiser4/menu.lst \ http://archiwain.free.fr/repository/grub-gfx-reiser4/install-grub \ http://archiwain.free.fr/repository/grub-gfx-reiser4/splash.xpm.gz \ http://archiwain.free.fr/repository/grub-gfx-reiser4/400_all_grub-0.97-reiser4-20050808-gentoo.patch \ http://archiwain.free.fr/repository/grub-gfx-reiser4/001_all_grub-0.95.20040823-splash.patch) backup=('boot/grub/menu.lst') md5sums=('cd3f3eb54446be6003156158d51f4884' '0f7f2f91493552081f94e90afd60589e'\ '8c9cdb9b38cb158f762cac8fc7eabb28' '894e82424f2d1cf4a76613e546645255'\ '2a9704bbc5e11ac92eb39eaed61a7fcb' '9d6f0f4f3004432a50ba8903117ef1a3') build() { cd $startdir/src/grub-$pkgver # add graphic background support patch -p1 < ../001_all_grub-0.95.20040823-splash.patch || return -1 # add support for reiser4 patch -Np1 -i ../400_all_grub-0.97-reiser4-20050808-gentoo.patch || return 1 # optimizations break the build -- disable them autoreconf --install --force CFLAGS= ./configure --prefix=/usr --bindir=/bin --sbindir=/sbin CFLAGS= make || return 1 make DESTDIR=$startdir/pkg install install -D -m644 ../menu.lst $startdir/pkg/boot/grub/menu.lst install -D -m755 ../install-grub $startdir/pkg/sbin/install-grub # symlink for compatibility with the <=0.7 installer mkdir -p $startdir/pkg/usr/share ln -s ../lib/grub $startdir/pkg/usr/share/grub # splashimage xpm install, and symlink install -D -m644 $startdir/splash.xpm.gz $startdir/pkg/boot/grub/splash.xpm.gz ln -sf . $startdir/pkg/boot/boot }