PKGNAME=coreutils
PKGSEC=utils
PKGDEP="acl glibc gmp libcap linux-pam openssl"
PKGDES="Collection of basic system utilities"

AUTOTOOLS_AFTER=(
    '--enable-largefile'
    '--enable-year2038'
    '--enable-threads=posix'
    '--enable-acl'
    '--enable-assert'
    '--disable-rpath'
    '--disable-libsmack'
    '--enable-xattr'
    '--enable-libcap'
    '--disable-single-binary'
    '--enable-bold-man-page-references'
    '--enable-install-program=arch'
    '--enable-no-install-program=hostname,kill,uptime'
    '--enable-nls'
    '--with-linux-crypto'
    '--with-openssl=yes'
    '--with-libgmp'
    '--without-included-regex'
    '--without-selinux'
    '--without-tty-group'
)

PKGESS=1

# FIXME: we cannot run autoreconf with "-i" because doing so would cause
# autoconf to extract threadlib.m4 "serial 10" from
# /usr/share/gettext/archive.dir.tar.xz (due to
# AM_GNU_GETTEXT_VERSION([0.19.2]) in configure.ac), overwriting the
# shipped threadlib.m4 "serial 42".
RECONF=0

# Needed by Afterglow, whereas FAIL_ARCH defaults to mainline-only.
FAIL_ARCH="!(mainline|retro)"
