Initial commit of LFS notes and scripts.
This commit is contained in:
41
lfs-scripts/perl.sh
Normal file
41
lfs-scripts/perl.sh
Normal file
@@ -0,0 +1,41 @@
|
||||
# Set the package we're building.
|
||||
package="perl-5.40.0"
|
||||
extension=".tar.xz"
|
||||
|
||||
# Decompress the source.
|
||||
echo "Unpacking ${package}${extension} ..."
|
||||
tar xvf ${package}${extension}
|
||||
|
||||
# Enter the unpacked sources.
|
||||
echo "Entering ${package} directory ..."
|
||||
cd ${package}
|
||||
|
||||
# LFS commands.
|
||||
export BUILD_ZLIB=False
|
||||
export BUILD_BZIP2=0
|
||||
sh Configure -des \
|
||||
-D prefix=/usr \
|
||||
-D vendorprefix=/usr \
|
||||
-D privlib=/usr/lib/perl5/5.40/core_perl \
|
||||
-D archlib=/usr/lib/perl5/5.40/core_perl \
|
||||
-D sitelib=/usr/lib/perl5/5.40/site_perl \
|
||||
-D sitearch=/usr/lib/perl5/5.40/site_perl \
|
||||
-D vendorlib=/usr/lib/perl5/5.40/vendor_perl \
|
||||
-D vendorarch=/usr/lib/perl5/5.40/vendor_perl \
|
||||
-D man1dir=/usr/share/man/man1 \
|
||||
-D man3dir=/usr/share/man/man3 \
|
||||
-D pager="/usr/bin/less -isR" \
|
||||
-D useshrplib \
|
||||
-D usethreads
|
||||
make
|
||||
TEST_JOBS=$(nproc) make test_harness
|
||||
make install
|
||||
unset BUILD_ZLIB BUILD_BZIP2
|
||||
|
||||
# Exit sources directory.
|
||||
echo "Exiting ${package} directory ..."
|
||||
cd ..
|
||||
|
||||
# Remove the directory of source files.
|
||||
echo "Removing ${package} directory ..."
|
||||
rm -rf ${package}
|
||||
Reference in New Issue
Block a user