void-packages/srcpkgs/grub/template

44 lines
1.5 KiB
Plaintext
Raw Normal View History

# Template file for 'grub'
pkgname=grub
2012-06-28 09:56:53 +02:00
version="2.00"
revision=3
build_style=gnu-configure
2012-03-19 10:20:19 +01:00
configure_args="--disable-werror"
2012-06-28 09:56:53 +02:00
makedepends="flex libusb-compat-devel ncurses-devel freetype-devel
liblzma-devel device-mapper-devel font-unifont-bdf fuse-devel"
fulldepends="os-prober"
conf_files="/etc/default/grub /etc/grub.d/40_custom"
short_desc="GRand Unified Bootloader 2"
maintainer="Juan RP <xtraeme@gmail.com>"
2012-03-19 10:20:19 +01:00
license="GPL-3"
2012-06-18 08:38:47 +02:00
homepage="http://www.gnu.org/software/grub/"
2012-06-28 09:56:53 +02:00
distfiles="$GNU_SITE/grub/grub-$version.tar.xz"
checksum=784ec38e7edc32239ad75b8e66df04dc8bfb26d88681bc9f627133a6eb85c458
long_desc="
This is GRUB 2, the second version of the GRand Unified Bootloader.
GRUB 2 is rewritten from scratch to make GNU GRUB cleaner, safer, more
robust, more powerful, and more portable."
2012-03-19 10:20:19 +01:00
pre_configure() {
# fix unifont.bdf location so grub-mkfont can create *.pf2 files
sed -i 's|/usr/share/fonts/unifont|/usr/share/fonts/misc|' configure
}
2012-03-19 10:20:19 +01:00
post_install() {
2011-07-10 00:03:36 +02:00
# Required to compress info files.
vmkdir usr/share/info
touch -f ${DESTDIR}/usr/share/info/dir
vinstall ${FILESDIR}/grub.default 644 etc/default grub
# Kernel hooks.
vinstall ${FILESDIR}/kernel.d/grub.post 750 \
etc/kernel.d/post-install 50-grub
vinstall ${FILESDIR}/kernel.d/grub.post 750 \
etc/kernel.d/post-remove 50-grub
# update-grub for noobs.
printf "#!/bin/sh\ngrub-mkconfig -o /boot/grub/grub.cfg\nexit \$?\n" >> \
${DESTDIR}/usr/sbin/update-grub
chmod 755 ${DESTDIR}/usr/sbin/update-grub
}