2010-02-18 04:53:10 +01:00
|
|
|
# Template file for 'grub'
|
|
|
|
pkgname=grub
|
2012-03-19 10:20:19 +01:00
|
|
|
version="2.00~beta2"
|
|
|
|
homepage="http://www.gnu.org/software/grub/"
|
|
|
|
distfiles="http://alpha.gnu.org/gnu/grub/grub-$version.tar.xz"
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2012-03-19 10:20:19 +01:00
|
|
|
configure_args="--disable-werror"
|
2009-10-04 08:04:12 +02:00
|
|
|
short_desc="GRand Unified Bootloader 2"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2012-03-19 10:20:19 +01:00
|
|
|
license="GPL-3"
|
|
|
|
checksum=45d6fda26441b24215aabd83ab3797cde3fd4a4d511e37457464587805431b28
|
2009-10-04 08:04:12 +02:00
|
|
|
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"
|
|
|
|
|
2011-05-15 11:23:11 +02:00
|
|
|
Add_dependency build xz
|
2011-06-24 23:02:58 +02:00
|
|
|
Add_dependency build flex
|
2010-02-18 04:53:10 +01:00
|
|
|
Add_dependency build zlib-devel
|
|
|
|
Add_dependency build libusb-compat-devel
|
|
|
|
Add_dependency build ncurses-devel
|
|
|
|
Add_dependency build freetype-devel
|
2011-01-29 02:27:35 +01:00
|
|
|
Add_dependency build liblzma-devel
|
|
|
|
Add_dependency build device-mapper-devel
|
2011-10-18 17:55:28 +02:00
|
|
|
Add_dependency build font-unifont-bdf
|
2012-03-19 10:20:19 +01:00
|
|
|
Add_dependency build fuse-devel
|
2010-02-18 07:12:34 +01:00
|
|
|
Add_dependency full os-prober
|
2009-10-04 08:04:12 +02:00
|
|
|
|
2012-03-19 10:20:19 +01:00
|
|
|
pre_configure() {
|
2011-10-18 17:55:28 +02:00
|
|
|
# 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
|
2009-10-04 08:04:12 +02:00
|
|
|
}
|