void-packages/srcpkgs/grub/template

50 lines
1.4 KiB
Text
Raw Normal View History

# Template file for 'grub'
pkgname=grub
2011-05-15 09:23:11 +00:00
version=1.99
2011-07-09 22:03:36 +00:00
revision=3
2011-05-15 09:23:11 +00:00
distfiles="http://ftp.gnu.org/gnu/grub/grub-$version.tar.xz"
build_style=gnu_configure
short_desc="GRand Unified Bootloader 2"
maintainer="Juan RP <xtraeme@gmail.com>"
2011-05-15 09:23:11 +00:00
checksum=f308148d4c83c6f16a73b58a0cd39381656edb740929028cae7ad5f0d651021b
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."
conf_files="/etc/default/grub /etc/grub.d/40_custom"
Add_dependency run glibc
Add_dependency run zlib
Add_dependency run libusb-compat
Add_dependency run ncurses-libs
Add_dependency run freetype
2011-01-29 01:27:35 +00:00
Add_dependency run liblzma
Add_dependency run device-mapper
2011-05-15 09:23:11 +00:00
Add_dependency build xz
Add_dependency build flex
2011-07-09 22:03:36 +00:00
Add_dependency build texinfo
Add_dependency build zlib-devel
Add_dependency build libusb-compat-devel
Add_dependency build ncurses-devel
Add_dependency build freetype-devel
Add_dependency build ruby
2011-01-29 01:27:35 +00:00
Add_dependency build liblzma-devel
Add_dependency build device-mapper-devel
Add_dependency full os-prober
post_install()
{
2011-07-09 22:03:36 +00: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
}