summaryrefslogtreecommitdiffstats
path: root/base/grub2/Pkgfile
blob: 77975efb8e496b77b2c553dd9936825408c61a38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Description: GRand Unified Bootloader, le programme de chargement du noyau en mémoire vive
# URL: http://www.gnu.org/software/grub/
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on:

name=grub2
version=1.97~beta3
release=4
source=(ftp://alpha.gnu.org/gnu/grub/grub-$version.tar.gz\
	grub.cfg)
build() {
	cd grub-$version
	unset CXXFLAGS
	unset CFLAGS
	./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
	install -Dm644 ../grub.cfg \
	$PKG/boot/grub/grub.cfg
}