Switch to perl tarballs generated from archiving git tags.

This commit is contained in:
Andrius Štikonas 2021-02-17 20:23:50 +00:00
parent e9455c8463
commit 621b099a57
12 changed files with 28 additions and 8 deletions

25
sysa/perl-5.003/perl-5.003.sh Executable file
View file

@ -0,0 +1,25 @@
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
#
# SPDX-License-Identifier: GPL-3.0-or-later
src_unpack() {
default_src_unpack
mv perl5-perl-5.003 perl-5.003
}
src_prepare() {
default_src_prepare
# Regenerate bison files
rm 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 ${file}.h
perl ${file}.pl
done
}