1.17. tmp coreutils-8.31

Package automake and aclocal at the host system are prerequisites for building this package.

#!/bin/sh
# Copyright © 1999-2020 Gerard Beekmans
# Copyright © 2017-2020 Random Crew
# Distributed under the terms of MIT License.

Configuration

src_config()
{
    ./configure \
        --prefix=${PREFIX} \
        --enable-install-program=hostname
}

Compilation

src_compile()
{
    make ${MAKEOPTS}
}

Installation

src_install()
{
    make install ${MAKEOPTS} DESTDIR=${D}
}

Unit testing

src_check()
{
    make RUN_EXPENSIVE_TESTS=yes check
}

Links

url.lfs: https://linuxfromscratch.org/lfs/view/9.1/chapter06/coreutils.html
url.lfs.stage1: https://linuxfromscratch.org/lfs/view/9.1/chapter05/coreutils.html