2021-02-14 15:36:05 +00:00
|
|
|
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
2021-02-17 20:23:50 +00:00
|
|
|
src_unpack() {
|
|
|
|
default_src_unpack
|
|
|
|
|
|
|
|
mv perl5-perl-5.000 perl-5.000
|
|
|
|
}
|
|
|
|
|
2021-02-14 15:36:05 +00:00
|
|
|
src_prepare() {
|
|
|
|
default_src_prepare
|
|
|
|
|
2021-02-17 20:23:50 +00:00
|
|
|
# Remove and regenerate bison files
|
2021-02-14 15:36:05 +00:00
|
|
|
rm perly.c perly.h
|
|
|
|
bison -d perly.y
|
|
|
|
mv perly.tab.c perly.c
|
|
|
|
mv perly.tab.h perly.h
|
|
|
|
|
2021-02-17 20:23:50 +00:00
|
|
|
# Regenerate embed.h
|
2021-02-14 15:36:05 +00:00
|
|
|
rm embed.h
|
|
|
|
./embed_h.SH
|
|
|
|
|
2021-02-17 20:23:50 +00:00
|
|
|
# Regenerate keywords.h
|
2021-02-14 15:36:05 +00:00
|
|
|
rm keywords.h
|
|
|
|
chmod +x keywords.sh
|
|
|
|
./keywords.sh
|
2021-02-17 20:23:50 +00:00
|
|
|
|
|
|
|
# Regenerate opcode.h
|
2021-02-14 15:36:05 +00:00
|
|
|
rm opcode.h
|
|
|
|
chmod +x opcode.sh
|
|
|
|
./opcode.sh
|
|
|
|
}
|