summaryrefslogtreecommitdiffstats
path: root/grub/Pkgfile
blob: f7838f23b2d02e948671f0c7685c5595ef5d252a (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
33
34
35
36
37
38
39
40
description="GNU GRUB (GRand Unified Bootloader) 2."
packager="Hannes Mayer <kontakt AT ecarux DOT de>"
maintainer="Lukc <lukc AT upyum DOT com>"
url="http://www.gnu.org/software/grub/"
#XXX: Euh… lzo dans base… pourquoi pas… mais freetype ?
#     À corriger, donc, et voir si freetype est vraiment requis pour 
#     grub-mkfont.
depends=(gettext lzo)
if use grub-mkfont; then
	depends=(${depends[@]} freetype)
fi

name=grub
version=1.97.1
release=1
source=( 
	ftp://alpha.gnu.org/gnu/$name/$name-$version.tar.gz
	grub2-915resolution.patch
)

include autotools # errlogs, etc.
build () { 
	cd $name-$version;
	CFLAGS="${CFLAGS//-O[0-9]/-O1}"
	./autogen.sh;
	patch -p1 < $SRC/grub2-915resolution.patch;
	sed -i 's|/usr/src/unifont.bdf|/usr/share/fonts/misc/unifont.bdf|' configure;
	./configure \
		--prefix=$prefix \
		--disable-werror \
		--sysconfdir=$sysconfdir \
		--libdir=$sharedir \
		--mandir=$mandir \
		--sbindir=/sbin \
		$(use_enable nls) \
		$(use_enable grub-mkfont);
	make;
	make DESTDIR=$PKG install
}