wok-next annotate grub/receipt @ rev 21276

try to build gens-gs again
author Hans-G?nter Theisgen
date Sat Dec 07 15:51:18 2019 +0100 (2019-12-07)
parents d958fec46c9f
children 550bb39b2d82
rev   line source
al@21020 1 # SliTaz package receipt v2.
pankso@29 2
pankso@29 3 PACKAGE="grub"
pankso@29 4 VERSION="0.97"
pankso@211 5 CATEGORY="base-system"
al@21020 6 SHORT_DESC="GRUB boot loader"
al@21020 7 MAINTAINER="devel@slitaz.org"
pascal@15078 8 LICENSE="GPL2"
al@20882 9 WEB_SITE="http://www.gnu.org/software/grub/"
al@20882 10 REPOLOGY="grub-legacy"
al@20882 11
pankso@29 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@29 13 WGET_URL="ftp://alpha.gnu.org/gnu/grub/$TARBALL"
pascal@1633 14 CONFIG_FILES="/boot/grub"
pankso@29 15
pascal@12235 16 BUILD_DEPENDS="gcc3"
pascal@12235 17
al@21020 18 compile_rules() {
pascal@12235 19 sed -i 's/\[ .grub-probe.*\]/mount | grep $grubdir | grep -q xfs/' \
pascal@12235 20 util/grub-install.in
al@21020 21
al@21020 22 ./configure \
al@21020 23 CC=gcc-3 \
al@21020 24 --prefix=/usr \
al@21020 25 --infodir=/usr/share/info \
al@21020 26 --without-curses \
al@21020 27 --mandir=/usr/share/man \
al@21020 28 $CONFIGURE_ARGS &&
pascal@1633 29 make &&
al@21020 30 make DESTDIR=$install install
pankso@29 31 }
pankso@29 32
al@21020 33 genpkg_rules() {
pankso@29 34 mkdir -p $fs/boot/grub $fs/usr
pascal@15078 35 cp -a $install/usr/bin $fs/usr
pascal@15078 36 cp -a $install/usr/sbin $fs/usr
pascal@15078 37 cp -a $install/usr/lib $fs/usr
al@21020 38
pankso@29 39 # Permissions
pankso@29 40 chmod 755 $fs/usr/sbin/grub-*
pascal@15078 41 chmod 655 $fs/usr/lib/grub/*/*
al@21020 42
pankso@29 43 # Example config file (menu.lst).
pascal@18763 44 cp $stuff/example-menu.lst $fs/boot/grub
pascal@18763 45 cp $stuff/splash.xpm.gz $fs/boot/grub
pankso@29 46 }