live-bootstrap/sysa/coreutils-5.0/coreutils-5.0.sh
Dor Askayo d2b3feca5f Remove the previous coreutils-5.0 source directory
coreutils-5.0 is built twice in the same source directory during the
bootstrap. This can create some unexpected issues.
2022-01-17 14:05:52 +02:00

31 lines
586 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"
# Remove previous source diretory
rm -rf "${pkg}"
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
# Bison pre-generated file
rm lib/getdate.c
cp "${mk_dir}/pass2.mk" Makefile
}
src_install() {
default
# perl later requires /bin/pwd
ln -s "${PREFIX}/bin/pwd" /bin/pwd
}