mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-22 19:16:32 +01:00
Build Perl 5.4.50.
This commit is contained in:
parent
621b099a57
commit
d4ddf4b79b
7 changed files with 157 additions and 0 deletions
29
sysa/perl5.004_05/perl5.004_05.sh
Executable file
29
sysa/perl5.004_05/perl5.004_05.sh
Executable file
|
|
@ -0,0 +1,29 @@
|
|||
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
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
|
||||
|
||||
# tcc messes up floats, which breaks version detection
|
||||
sed -i '/require/d' embed.pl
|
||||
|
||||
# Regenerate other prebuilt header files
|
||||
for file in embed keywords opcode; do
|
||||
rm ${file}.h
|
||||
perl ${file}.pl
|
||||
done
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default_src_install
|
||||
|
||||
# Remove old perl
|
||||
rm -rf "${PREFIX}"/lib/perl5/5.003
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue