1.27. tmp 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() { sh Configure \ -des \ -Dprefix=${PREFIX} \ -Dlibs=-lm \ -Uloclibpth \ -Ulocincpth }
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() { mkdir -p ${D}/${PREFIX}/bin cp -f perl cpan/podlators/scripts/pod2man ${D}/${PREFIX}/bin/ mkdir -p ${D}/${PREFIX}/lib/perl5/${PV}/ cp -fR lib/* ${D}/${PREFIX}/lib/perl5/${PV}/ }
Unit testing
src_check() { make -k test }
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