opt/grub2/Pkgfile

33 lines
915 B
Plaintext
Raw Normal View History

2012-09-05 13:41:50 -05:00
# Description: A Multiboot boot loader
# URL: http://www.gnu.org/software/grub/
2016-06-05 14:16:03 -05:00
# Maintainer: Matt Housh, jaeger at crux dot ninja
# Depends on: libdevmapper freetype python3
2012-09-05 13:41:50 -05:00
name=grub2
2021-06-16 00:21:52 -05:00
version=2.06
release=4
2017-05-25 16:21:46 -05:00
source=(http://ftp.gnu.org/gnu/grub/grub-$version.tar.xz \
2017-11-08 09:05:10 -06:00
http://jaeger.morpheus.net/linux/crux/files/unifont-9.0.06.pcf.gz \
$name-tweaks.diff grub.cfg.sample csum_seed.diff)
2012-09-05 13:41:50 -05:00
build() {
export CFLAGS="${CFLAGS} -Wno-error -Os"
export PYTHON=python3
2017-05-25 16:21:46 -05:00
cd grub-$version
patch -p1 -i $SRC/$name-tweaks.diff
patch -p1 -i $SRC/csum_seed.diff
2012-09-05 13:41:50 -05:00
./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}
2017-05-25 16:21:46 -05:00
gzip -d $SRC/unifont-9.0.06.pcf.gz
2014-09-20 14:23:37 -05:00
install -d $PKG/usr/lib/grub/fonts
./grub-mkfont -o $PKG/usr/lib/grub/fonts/unifont.pf2 \
2017-05-25 16:21:46 -05:00
$SRC/unifont-9.0.06.pcf
2012-09-05 13:41:50 -05:00
}