2.37. perl-5.30.1
#!/bin/sh # Copyright © 1999-2020 Gerard Beekmans # Copyright © 2017-2020 Random Crew # Distributed under the terms of MIT License.
Configuration
src_config()
{
export BUILD_ZLIB=False
export BUILD_BZIP2=0
sh Configure \
-des \
-Dprefix=${PREFIX} \
-Dvendorprefix=${PREFIX} \
-Dman1dir=${PREFIX}/share/man/man1 \
-Dman3dir=${PREFIX}/share/man/man3 \
-Dpager="${PREFIX}/bin/less -isR" \
-Duseshrplib \
-Dusethreads
}
Compilation
src_compile()
{
make ${MAKEOPTS}
}
Installation
We are not doing unset of variables:
unset BUILD_ZLIB BUILD_BZIP2
As they are unset automatically after the build of current package ends.
src_install()
{
make install ${MAKEOPTS} DESTDIR=${D}
}
Unit testing
src_check()
{
make -k test
}
Build code
Other files
Links
- url.lfs: https://linuxfromscratch.org/lfs/view/9.1/chapter06/perl.html
- url.lfs.stage1: https://linuxfromscratch.org/lfs/view/9.1/chapter05/perl.html