2021-02-14 15:36:05 +00:00
|
|
|
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
|
2022-03-07 07:58:20 +00:00
|
|
|
# SPDX-FileCopyrightText: 2022 fosslinux <fosslinux@aussies.space>
|
2021-02-14 15:36:05 +00:00
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
2021-02-17 20:23:50 +00:00
|
|
|
src_unpack() {
|
2021-05-03 23:48:06 +01:00
|
|
|
default
|
2021-02-17 20:23:50 +00:00
|
|
|
|
|
|
|
mv perl5-perl-5.000 perl-5.000
|
|
|
|
}
|
|
|
|
|
2021-02-14 15:36:05 +00:00
|
|
|
src_prepare() {
|
2021-05-03 23:48:06 +01:00
|
|
|
default
|
2021-02-14 15:36:05 +00:00
|
|
|
|
2021-02-17 20:23:50 +00:00
|
|
|
# Remove and regenerate bison files
|
2022-01-04 22:16:58 +00:00
|
|
|
rm -f perly.c perly.h
|
2021-02-14 15:36:05 +00:00
|
|
|
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
|
2022-01-04 22:16:58 +00:00
|
|
|
rm -f embed.h
|
2021-02-14 15:36:05 +00:00
|
|
|
./embed_h.SH
|
|
|
|
|
2021-02-17 20:23:50 +00:00
|
|
|
# Regenerate keywords.h
|
2022-01-04 22:16:58 +00:00
|
|
|
rm -f keywords.h
|
2021-02-14 15:36:05 +00:00
|
|
|
chmod +x keywords.sh
|
|
|
|
./keywords.sh
|
2021-02-17 20:23:50 +00:00
|
|
|
|
|
|
|
# Regenerate opcode.h
|
2022-01-04 22:16:58 +00:00
|
|
|
rm -f opcode.h
|
2021-02-14 15:36:05 +00:00
|
|
|
chmod +x opcode.sh
|
|
|
|
./opcode.sh
|
|
|
|
}
|