moved everything to different stages

This commit is contained in:
ag-tsotetsi
2026-03-29 12:29:46 +02:00
parent abcc7eca2a
commit c69f878094
18 changed files with 423 additions and 530 deletions

28
stage/prechroot/perl.bash Normal file
View File

@@ -0,0 +1,28 @@
fetch $PERL_URL
sudo chroot "$SYSROOT" /usr/bin/env -i \
MAKEFLAGS="$MAKEFLAGS" \
PATH=/usr/bin:/usr/sbin \
SOURCES=/sources \
PERL_VERSION=$PERL_VERSION \
/usr/bin/bash <<- "EOF"
set -euo pipefail
cd "$SOURCES" && tar xf perl-$PERL_VERSION.tar.gz && cd perl-$PERL_VERSION
sh Configure -des \
-D prefix=/usr \
-D vendorprefix=/usr \
-D useshrplib \
-D privlib=/usr/lib/perl5/$PERL_VERSION/core_perl \
-D archlib=/usr/lib/perl5/$PERL_VERSION/core_perl \
-D sitelib=/usr/lib/perl5/$PERL_VERSION/site_perl \
-D sitearch=/usr/lib/perl5/$PERL_VERSION/site_perl \
-D vendorlib=/usr/lib/perl5/$PERL_VERSION/vendor_perl \
-D vendorarch=/usr/lib/perl5/$PERL_VERSION/vendor_perl
make && make install
cd "$SOURCES" && rm -rf perl-$PERL_VERSION
EOF