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

33
sysa/perl-5.000/perl-5.000.sh Executable file
View file

@ -0,0 +1,33 @@
# 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.000 perl-5.000
}
src_prepare() {
default_src_prepare
# Remove and 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 embed.h
rm embed.h
./embed_h.SH
# Regenerate keywords.h
rm keywords.h
chmod +x keywords.sh
./keywords.sh
# Regenerate opcode.h
rm opcode.h
chmod +x opcode.sh
./opcode.sh
}