live-bootstrap/sysa/perl5.005-03/perl5.005-03.sh
fosslinux b760b3eb2b Final fixes:
- All QEMU reproducibility issues resolved
- Added SPDX licensing
- Couple other small issues
- Fix guile reproducbility
2022-03-12 16:24:25 +11:00

31 lines
672 B
Bash
Executable file

# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
# SPDX-FileCopyrightText: 2022 fosslinux <fosslinux@aussies.space>
#
# SPDX-License-Identifier: GPL-3.0-or-later
src_prepare() {
default
# Regenerate bison files
rm -f perly.c perly.h
bison -d perly.y
mv perly.tab.c perly.c
mv perly.tab.h perly.h
# Regenerate other prebuilt header files
for file in embed keywords opcode; do
rm -f ${file}.h
perl ${file}.pl
done
rm -f regnodes.h
perl regcomp.pl
rm -f fbyterun.h byterun.c
perl bytecode.pl
}
src_install() {
# Remove old perl
rm -rf "${PREFIX}"/lib/perl5/
default
}