mirror of
https://github.com/YellowJacketLinux/lfs-buildscripts.git
synced 2025-01-23 14:32:20 +08:00
CH7 perl
This commit is contained in:
parent
1f29211dd0
commit
a00d1435df
38
chrootscripts/CH07.05-perl.sh
Normal file
38
chrootscripts/CH07.05-perl.sh
Normal 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
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user