mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-31 01:42:56 +02:00
grub: move to usr/bin.
This commit is contained in:
parent
9211d3acb5
commit
1ade715cf2
1 changed files with 11 additions and 7 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'grub'
|
# Template file for 'grub'
|
||||||
pkgname=grub
|
pkgname=grub
|
||||||
version=2.00
|
version=2.00
|
||||||
revision=20
|
revision=21
|
||||||
hostmakedepends="flex"
|
hostmakedepends="flex"
|
||||||
makedepends="libusb-compat-devel ncurses-devel freetype-devel
|
makedepends="libusb-compat-devel ncurses-devel freetype-devel
|
||||||
liblzma-devel device-mapper-devel font-unifont-bdf fuse-devel"
|
liblzma-devel device-mapper-devel font-unifont-bdf fuse-devel"
|
||||||
|
@ -29,7 +29,8 @@ do_configure() {
|
||||||
CFLAGS="$CFLAGS -fno-stack-protector"
|
CFLAGS="$CFLAGS -fno-stack-protector"
|
||||||
|
|
||||||
configure_args+=" --enable-device-mapper --enable-cache-stats --enable-nls
|
configure_args+=" --enable-device-mapper --enable-cache-stats --enable-nls
|
||||||
--enable-grub-mkfont --enable-grub-mount --disable-werror "
|
--enable-grub-mkfont --enable-grub-mount --disable-werror
|
||||||
|
--sbindir=/usr/bin"
|
||||||
|
|
||||||
# fix unifont.bdf location so grub-mkfont can create *.pf2 files
|
# fix unifont.bdf location so grub-mkfont can create *.pf2 files
|
||||||
sed -i 's|/usr/share/fonts/unifont|/usr/share/fonts/misc|' configure
|
sed -i 's|/usr/share/fonts/unifont|/usr/share/fonts/misc|' configure
|
||||||
|
@ -63,11 +64,14 @@ do_build() {
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
|
# XXX remove the strip wrapper
|
||||||
|
rm ${XBPS_WRAPPERDIR}/strip
|
||||||
|
|
||||||
if [ -n "${_GRUBX64}" ]; then
|
if [ -n "${_GRUBX64}" ]; then
|
||||||
cd $wrksrc/efi_build
|
cd $wrksrc/efi_build
|
||||||
make DESTDIR=$DESTDIR/efi install
|
make DESTDIR=$DESTDIR/efi install
|
||||||
# Remove non-platform specific files
|
# Remove non-platform specific files
|
||||||
rm -rf ${DESTDIR}/efi/{boot,etc,usr/{share,bin,sbin}}
|
rm -rf ${DESTDIR}/efi/{boot,etc,usr/{share,bin}}
|
||||||
rm -f ${DESTDIR}/efi/usr/lib/grub/x86_64-efi/x86_64-*
|
rm -f ${DESTDIR}/efi/usr/lib/grub/x86_64-efi/x86_64-*
|
||||||
rm -f ${DESTDIR}/efi/usr/lib/grub/x86_64-efi/*.{module,image}
|
rm -f ${DESTDIR}/efi/usr/lib/grub/x86_64-efi/*.{module,image}
|
||||||
mv ${DESTDIR}/efi/* ${DESTDIR}
|
mv ${DESTDIR}/efi/* ${DESTDIR}
|
||||||
|
@ -89,16 +93,16 @@ do_install() {
|
||||||
|
|
||||||
# update-grub for noobs.
|
# update-grub for noobs.
|
||||||
printf "#!/bin/sh\ngrub-mkconfig -o /boot/grub/grub.cfg\nexit \$?\n" >> \
|
printf "#!/bin/sh\ngrub-mkconfig -o /boot/grub/grub.cfg\nexit \$?\n" >> \
|
||||||
${DESTDIR}/usr/sbin/update-grub
|
${DESTDIR}/usr/bin/update-grub
|
||||||
chmod 755 ${DESTDIR}/usr/sbin/update-grub
|
chmod 755 ${DESTDIR}/usr/bin/update-grub
|
||||||
|
|
||||||
vmkdir usr/share/bash-completion/completions
|
vmkdir usr/share/bash-completion/completions
|
||||||
mv ${DESTDIR}/etc/bash_completion.d/grub \
|
mv ${DESTDIR}/etc/bash_completion.d/grub \
|
||||||
${DESTDIR}/usr/share/bash-completion/completions
|
${DESTDIR}/usr/share/bash-completion/completions
|
||||||
|
|
||||||
# Remove useless tools
|
# Remove useless tools
|
||||||
rm ${DESTDIR}/usr/sbin/grub-ofpathname
|
rm ${DESTDIR}/usr/bin/grub-ofpathname
|
||||||
rm ${DESTDIR}/usr/sbin/grub-sparc64-setup
|
rm ${DESTDIR}/usr/bin/grub-sparc64-setup
|
||||||
}
|
}
|
||||||
|
|
||||||
grub-utils_package() {
|
grub-utils_package() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue