summaryrefslogtreecommitdiffstats
path: root/grub/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'grub/Pkgfile')
-rw-r--r--grub/Pkgfile40
1 files changed, 40 insertions, 0 deletions
diff --git a/grub/Pkgfile b/grub/Pkgfile
new file mode 100644
index 0000000..f7838f2
--- /dev/null
+++ b/grub/Pkgfile
@@ -0,0 +1,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
+}
+