Rename perl5.004_05 and perl5.005_03

The underscores cause problems later, as _ is a delimiter for "revision
number" in packaging.
This commit is contained in:
fosslinux 2022-01-14 16:23:36 +11:00
parent 4fb8efafe2
commit 634ec99771
11 changed files with 12 additions and 8 deletions

View file

@ -1,30 +0,0 @@
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
#
# 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
}