opt/grub2/Pkgfile

33 lines
945 B
Plaintext

# Description: A Multiboot boot loader
# URL: http://www.gnu.org/software/grub/
# Maintainer: Matt Housh, jaeger at crux dot ninja
# Depends on: libdevmapper freetype python
name=grub2
version=2.04
release=1
source=(http://ftp.gnu.org/gnu/grub/grub-$version.tar.xz \
http://jaeger.morpheus.net/linux/crux/files/unifont-9.0.06.pcf.gz \
$name-00_header.diff $name-10_linux.diff grub.cfg.sample)
build() {
export CFLAGS="${CFLAGS} -Wno-error"
cd grub-$version
patch -i $SRC/$name-00_header.diff util/grub.d/00_header.in
patch -i $SRC/$name-10_linux.diff util/grub.d/10_linux.in
./configure --prefix=/usr \
--sysconfdir=/etc \
--enable-device-mapper \
--disable-efiemu \
--disable-grub-mount
make
make DESTDIR=$PKG install
rm -rf $PKG/usr/share/{info,locale,grub/themes}
gzip -d $SRC/unifont-9.0.06.pcf.gz
install -d $PKG/usr/lib/grub/fonts
./grub-mkfont -o $PKG/usr/lib/grub/fonts/unifont.pf2 \
$SRC/unifont-9.0.06.pcf
}