This commit is contained in:
YellowJacketLinux 2024-10-03 12:17:25 -07:00
parent 1f29211dd0
commit a00d1435df
2 changed files with 40 additions and 1 deletions

View File

@ -0,0 +1,38 @@
#!/bin/bash
source versions.sh
GLSOURCES="/sources"
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
[ -d perl-${perl_version} ] && rm -rf perl-${perl_version}
tar -Jxf ${perl_tarball}
cd perl-${perl_version}
vlib="/usr/lib/perl5/${perl_major_version}"
sh Configure -des \
-D prefix=/usr \
-D vendorprefix=/usr \
-D useshrplib \
-D privlib=${vlib}/core_perl \
-D archlib=${vlib}/core_perl \
-D sitelib=${vlib}/site_perl \
-D sitearch=${vlib}/site_perl \
-D vendorlib=${vlib}/vendor_perl \
-D vendorarch=${vlib}/vendor_perl
make
if [ $? -ne 0 ]; then
myfail "Failed building perl"
fi
make install
if [ $? -ne 0 ]; then
myfail "Failed installing perl"
fi

View File

@ -320,7 +320,8 @@ patch_dnl="https://ftp.gnu.org/gnu/patch/patch-${patch_version}.tar.xz"
patch_sha256="ac610bda97abe0d9f6b7c963255a11dcb196c25e337c61f94e4778d632f1d8fd"
patch_tarball="patch-${patch_version}.tar.xz"
perl_version="5.40.0"
perl_major_version="5.40"
perl_version="${perl_major_version}.0"
perl_dnl="https://www.cpan.org/src/5.0/perl-${perl_version}.tar.xz"
perl_sha256="d5325300ad267624cb0b7d512cfdfcd74fa7fe00c455c5b51a6bd53e5e199ef9"
perl_tarball="perl-${perl_version}.tar.xz"