2021-02-07 23:05:02 +00:00
|
|
|
# SPDX-FileCopyrightText: 2021 Paul Dersey <pdersey@gmail.com>
|
2022-03-07 07:58:20 +00:00
|
|
|
# SPDX-FileCopyrightText: 2022 fosslinux <fosslinux@aussies.space>
|
2022-04-13 00:08:29 +01:00
|
|
|
# SPDX-FileCopyrightText: 2022 Andrius Štikonas <andrius@stikonas.eu>
|
2021-02-07 23:05:02 +00:00
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
|
|
|
src_prepare() {
|
2022-05-17 01:01:48 +01:00
|
|
|
default
|
|
|
|
|
2021-02-07 23:05:02 +00:00
|
|
|
cp lib/fnmatch_.h lib/fnmatch.h
|
|
|
|
cp lib/ftw_.h lib/ftw.h
|
|
|
|
cp lib/search_.h lib/search.h
|
|
|
|
touch config.h
|
|
|
|
|
2022-06-14 22:09:07 +01:00
|
|
|
# Rebuild pregenerated file
|
|
|
|
rm -f src/false.c
|
|
|
|
|
2022-06-15 21:04:18 +01:00
|
|
|
rm -f src/dircolors.h
|
|
|
|
|
2021-03-13 19:32:19 +00:00
|
|
|
# Bison pre-generated file
|
|
|
|
rm lib/getdate.c
|
|
|
|
|
2021-02-07 23:05:02 +00:00
|
|
|
cp "${mk_dir}/pass2.mk" Makefile
|
|
|
|
}
|
2021-04-28 07:16:09 +01:00
|
|
|
|
|
|
|
src_install() {
|
|
|
|
default
|
|
|
|
|
|
|
|
# perl later requires /bin/pwd
|
2021-06-24 00:32:19 +01:00
|
|
|
ln -s "${PREFIX}/bin/pwd" /bin/pwd
|
2021-04-28 07:16:09 +01:00
|
|
|
}
|