1
0
forked from ports/opt
opt/grub2/Pkgfile

37 lines
1.0 KiB
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
2023-12-27 18:30:01 -06:00
version=2.12
release=1
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 \
2023-12-27 18:30:01 -06:00
$name-tweaks.diff grub.cfg.sample csum_seed.diff extra_deps.lst)
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
2023-12-27 18:30:01 -06:00
#patch -p1 -i $SRC/csum_seed.diff
cp $SRC/extra_deps.lst grub-core/
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
ln -s /usr/lib/grub/fonts/unifont.pf2 \
$PKG/usr/share/grub/unicode.pf2
2012-09-05 13:41:50 -05:00
}