# SliTaz package receipt. PACKAGE="grub2" VERSION="2.04" CATEGORY="base-system" SHORT_DESC="GRUB2 boot loader." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL3" WEB_SITE="https://www.gnu.org/software/grub/" SOURCE="grub" TARBALL="$SOURCE-$VERSION.tar.xz" WGET_URL="http://ftp.gnu.org/gnu/grub/$TARBALL" DEPENDS="freetype grep libdevmapper libusb libusb-compat ncurses zlib" BUILD_DEPENDS="automake bison flex freetype-dev fuse2-dev libdevmapper-dev libusb-compat-dev libusb-dev ncurses-dev xz-dev zlib-dev" CONFIG_FILES="/etc/default/grub /etc/grub.d/40_custom" SUGGESTED="os-prober" # What is the latest version available today? current_version() { wget -O - ${WGET_URL%/*} 2>/dev/null | \ sed "/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-||;s|.tar.*||" | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { sed -i 's|fprintf(...) |&(void)|' grub-core/script/yylex.l # Avoid grub-mkimage error: decompressor is too big: patch --strip=1 --input=$stuff/patches/gentpl.py-2.04 # see also: http://git.savannah.gnu.org/cgit/grub.git/commit/?id=6643507ce30f775008e093580f0c9499dfb2c485 ./autogen.sh && ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ $CONFIGURE_ARGS && make $MAKEFLAGS && make install DESTDIR=$DESTDIR } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/boot/grub mkdir -p $fs/etc/default mkdir -p $fs/usr cp -a $install/usr/bin $fs/usr cp -a $install/usr/sbin $fs/usr cp -a $install/usr/share $fs/usr cp -a $install/usr/lib $fs/usr cp -a $install/etc $fs cp -a stuff/etc-default-grub $fs/etc/default/grub # Example configuration file (grub.cfg). cp stuff/example-grub.cfg $fs/boot/grub } post_install() { cat <