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

updated portaudio and portaudio-dev (v19_20110326 -> 190600_20161030)
author Hans-G?nter Theisgen
date Wed Jun 05 16:15:15 2019 +0100 (2019-06-05)
parents 6a6ea56d432e
children cc07895be981
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@21366 21 sed -i 's|fprintf(...) |&(void)|' grub-core/script/yylex.l
pascal@4478 22 ./configure --prefix=/usr --sysconfdir=/etc \
pascal@4478 23 --mandir=/usr/share/man $CONFIGURE_ARGS &&
pascal@15265 24 make $MAKEFLAGS &&
pascal@13114 25 make DESTDIR=$DESTDIR install
pascal@4478 26 }
pascal@4478 27
pascal@4478 28 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@4478 29 genpkg_rules()
pascal@4478 30 {
pascal@4478 31 mkdir -p $fs/boot/grub $fs/usr
pascal@14999 32 cp -a $install/usr/bin $fs/usr
pascal@14999 33 cp -a $install/usr/sbin $fs/usr
pascal@14999 34 cp -a $install/usr/share $fs/usr
pascal@14999 35 cp -a $install/usr/lib $fs/usr
pascal@14999 36 cp -a $install/etc $fs
pascal@4478 37
pascal@4478 38 # Example config file (grub.cfg).
pascal@4478 39 cp stuff/example-grub.cfg $fs/boot/grub
pascal@13842 40 }
pascal@13842 41
pascal@13842 42 post_install()
pascal@13842 43 {
pascal@13841 44 cat <<EOT
pascal@13841 45 # To install grub to your sda MBR
pascal@13841 46 grub-install /dev/sda
pascal@13841 47
pascal@13841 48 # To generate a configuration file
pascal@13841 49 grub-mkconfig -o /boot/grub/grub.cfg
pascal@13841 50
pascal@13841 51 # You can learn from /boot/grub/example-grub.cfg too.
pascal@13841 52 EOT
pascal@4478 53 }
pascal@4478 54