|
楼主 |
发表于 2005-2-28 08:02:18
|
显示全部楼层
[arch][PKGBUILD]grub
软件名:grub
版本:0.96-4
软件简介:引导器
补丁:图形splash补丁
编写:
提交日期:2005年03月03日
PKGBUILD
- # Contributor: Mario A. Vazquez <mario_vazq@hotmail.com>
- pkgname=grub
- pkgver=0.96
- pkgrel=4
- pkgdesc="A GNU multiboot boot loader"
- url="http://www.gnu.org/software/grub/"
- depends=('ncurses')
- makedepends=('')
- source=(ftp://alpha.gnu.org/gnu/grub/grub-$pkgver.tar.gz \
- http://www.mundolink.net/users/mariov/arch/packages/grub/menu.lst install-grub http://www.mundolink.net/users/mariov/arch/packages/grub/grub-0.96-graphics.patch http://www.mundolink.net/users/mariov/arch/packages/grub/splash.xpm.gz)
- backup=('boot/grub/menu.lst')
- md5sums=()
- build() {
- cd $startdir/src/$pkgname-$pkgver
- # add graphic background support
- patch -p1 < ../grub-0.96-graphics.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 -m644 $startdir/splash.xpm.gz $startdir/pkg/boot/grub/splash.xpm.gz
- install -D -m755 ../install-grub $startdir/pkg/sbin/install-grub
- # make symlink to fix path issues with splashimage
- ln -sf . $startdir/pkg/boot/boot
- }
复制代码
install-grub
备注:
grub背景图片图片可用如下命令转换:
convert -resize 640x480 -colors 14 image.jpg splash.xpm && gzip -9 splash.xpm
修改/boot/grub/menu.lst,添加类似如下一行:
splashimage=(hd0,8)/boot/grub/splash.xpm.gz |
|