[source]
git = "https://github.com/uutils/coreutils"
rev = "181cfc885b460bbcdf2cf1c866cb1ea48c3f6009"

[build]
template = "custom"
script = """
cookbook_cargo --no-default-features --features feat_os_unix_redox --bin coreutils

BINS=(
    base32
    base64
    basename
    basenc
    cat
    chmod
    cksum
    comm
    cp
    csplit
    cut
    date
    dd
    #df not working, use redox coreutils
    dircolors
    dirname
    du
    echo
    env
    expand
    expr
    factor
    false
    fmt
    fold
    hashsum
    head
    #install need gid2grp
    join
    link
    ln
    ls
    mkdir
    mktemp
    mv
    nl
    numfmt
    od
    paste
    pr
    printenv
    printf
    ptx
    pwd
    readlink
    realpath
    relpath
    rm
    rmdir
    seq
    shred
    shuf
    sleep
    sort
    split
    stat
    sum
    tac
    tail
    tee
    test
    tr
    true
    truncate
    tsort
    unexpand
    uniq
    wc
)

for bin in "${BINS[@]}"
do
  ln -sv coreutils "${COOKBOOK_STAGE}/bin/$bin"
done
"""