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>
|
2021-02-07 23:05:02 +00:00
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
|
|
|
src_unpack() {
|
|
|
|
src_dir="${base_dir}/src"
|
2022-01-02 08:38:01 +00:00
|
|
|
|
|
|
|
# Remove previous source diretory
|
|
|
|
rm -rf "${pkg}"
|
|
|
|
|
2021-02-07 23:05:02 +00:00
|
|
|
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
|
|
|
|
|
2022-01-14 10:54:13 +00:00
|
|
|
patch -Np0 -i ../../patches/touch-getdate.patch
|
|
|
|
|
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
|
|
|
}
|