wok-6.x annotate grub2/receipt @ rev 20892

Remove ashism ==
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 26 09:14:07 2019 +0100 (2019-02-26)
parents 8154fa30d15b
children 81f116b5627e
rev   line source
pascal@4478 1 # SliTaz package receipt.
pascal@4478 2
pascal@4478 3 PACKAGE="grub2"
pascal@4478 4 SOURCE="grub"
pascal@19935 5 VERSION="2.02"
pascal@4478 6 CATEGORY="base-system"
pascal@4478 7 SHORT_DESC="GRUB2 boot loader."
pascal@4478 8 MAINTAINER="pascal.bellard@slitaz.org"
pascal@14999 9 LICENSE="GPL3"
pascal@13114 10 TARBALL="$SOURCE-$VERSION.tar.xz"
pascal@14999 11 WEB_SITE="http://www.gnu.org/software/grub/"
pascal@14999 12 WGET_URL="ftp://ftp.gnu.org/gnu/grub/$TARBALL"
pascal@14999 13
pascal@13115 14 DEPENDS="zlib freetype ncurses libusb-compat grep libusb libdevmapper"
pascal@13115 15 BUILD_DEPENDS="flex bison zlib-dev xz-dev freetype-dev ncurses-dev \
pascal@13115 16 libusb-compat-dev libusb-dev libdevmapper-dev"
pascal@4478 17
pascal@4478 18 # Rules to configure and make the package.
pascal@4478 19 compile_rules()
pascal@4478 20 {
pascal@4478 21 ./configure --prefix=/usr --sysconfdir=/etc \
pascal@4478 22 --mandir=/usr/share/man $CONFIGURE_ARGS &&
pascal@15265 23 make $MAKEFLAGS &&
pascal@13114 24 make DESTDIR=$DESTDIR install
pascal@4478 25 }
pascal@4478 26
pascal@4478 27 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@4478 28 genpkg_rules()
pascal@4478 29 {
pascal@4478 30 mkdir -p $fs/boot/grub $fs/usr
pascal@14999 31 cp -a $install/usr/bin $fs/usr
pascal@14999 32 cp -a $install/usr/sbin $fs/usr
pascal@14999 33 cp -a $install/usr/share $fs/usr
pascal@14999 34 cp -a $install/usr/lib $fs/usr
pascal@14999 35 cp -a $install/etc $fs
pascal@4478 36
pascal@4478 37 # Example config file (grub.cfg).
pascal@4478 38 cp stuff/example-grub.cfg $fs/boot/grub
pascal@13842 39 }
pascal@13842 40
pascal@13842 41 post_install()
pascal@13842 42 {
pascal@13841 43 cat <<EOT
pascal@13841 44 # To install grub to your sda MBR
pascal@13841 45 grub-install /dev/sda
pascal@13841 46
pascal@13841 47 # To generate a configuration file
pascal@13841 48 grub-mkconfig -o /boot/grub/grub.cfg
pascal@13841 49
pascal@13841 50 # You can learn from /boot/grub/example-grub.cfg too.
pascal@13841 51 EOT
pascal@4478 52 }
pascal@4478 53