# grub2/cfg - "Build" settings for package

#---------------------------------------------------------------------

[technotes]

1. The source tarball used by this package was created  based on "git"
upstream sources. The sources were obtained as follows:

ocgitfetch --run \
--checkout=grub-2.06 \
--deletegit \
--notar \
https://github.com/rhboot/grub2.git || exit 1

cd gitdir/grub2-git-*               || exit 1
./bootstrap                         || exit 1
rm -fr gnulib/.git*                 || exit 1
cd ..                               || exit 1
dirtotargz grub2-git-*              || exit 1
ls -l                               || exit 1

#---------------------------------------------------------------------

[buildtimes]

00.06 hours (or 003.62 minutes) - ThinkPad W530 i7 4x2 32GB RAM

#---------------------------------------------------------------------

[settings]
build    = default
setpaths = fuse209, lvm2
tmpsize  = 180M

#---------------------------------------------------------------------

[depends]
actools
brotli
bzip2
eudev
freetype2
fusecore
gawk
graphite2
grep
gtkcore
libpng
libtirpc
openssl
pcre2
sed
util-linux
xzutils
zlib

#---------------------------------------------------------------------

[configure]
MANBASE=$PKGDIR_PROD/man
mkdir -p $MANBASE

mkdir -p $PKGDIR_PROD/share/locale
./autogen.sh

CC=gcc bash ./configure \
    --prefix=$PKGDIR_PROD          \
    --build=$LACARCHBUILD          \
    --host=$LACARCHHOST            \
    --disable-dependency-tracking  \
    --enable-shared=yes            \
    --enable-static=no             \
    --mandir=$MANBASE

#---------------------------------------------------------------------

[postbuild]
DEFDIR=$PKGDIR_PROD/etc/default
mkdir -p $DEFDIR
cp -p $PKGDIR_SPECIAL/default-grub $DEFDIR/grub

#---------------------------------------------------------------------

# Original URLs. These URLs were valid at one point, but may have died
# since then. If you download newer versions of tarballs [etc.], don't
# delete  the  original versions,  as you may not  be able  to replace
# them.

[urls]
url_debian  = tbd
url_home    = tbd
url_lfs     = tbd
url_tarball = special           # See "technotes" in "cfg" file

#---------------------------------------------------------------------

[history]
230318 Added package. Started with ae94b97be (same as 2.06).