live-bootstrap/sysa/coreutils-5.0/coreutils-5.0.sh
Paul Dersey d5a9f4c9ea Rebuild coreutils-5.0 with tcc+musl and more utilities
Add comm, expr, date, dd, sort, uname, uniq
2021-02-11 18:35:28 -05:00

25 lines
474 B
Bash
Executable file

# SPDX-FileCopyrightText: 2021 Paul Dersey <pdersey@gmail.com>
#
# SPDX-License-Identifier: GPL-3.0-or-later
src_unpack() {
src_dir="${base_dir}/src"
tar -xf "${src_dir}/${pkg}.tar"
}
src_prepare() {
cp lib/fnmatch_.h lib/fnmatch.h
cp lib/ftw_.h lib/ftw.h
cp lib/search_.h lib/search.h
touch config.h
cp "${mk_dir}/pass2.mk" Makefile
}
src_compile() {
make -f Makefile
}
src_install() {
make -f Makefile install PREFIX="${PREFIX}"
}