/* * perl — the interpreter behind autotools (autoconf, automake) and much * of the classic toolchain. * * Configured with -Duserelocatableinc so @INC resolves relative to the * perl binary — the store prefix is only known at install time. * NOTE: Configure MUST run on a clean tree (stale config.sh breaks the * relocatable flags); kappa's fresh work dir guarantees this. */ package "perl" { const version = "5.42.3" const source = "https://www.cpan.org/src/5.0/perl-${version}.tar.gz" sha256 = "1137740985837b5cdf15f0cfab932279dcb4352f912fed6fc144e8b4f0823627" license = "Artistic-1.0 OR GPL-1.0-or-later" provides = ["perl", "perl5"] depends = [ { name = "make" }, ] prepare { curl -L -o perl-${version}.tar.gz ${source} echo "1137740985837b5cdf15f0cfab932279dcb4352f912fed6fc144e8b4f0823627 perl-${version}.tar.gz" | sha256sum -c - tar xf perl-${version}.tar.gz --strip-components=1 } build { ./Configure -des -Dprefix=${prefix} -Duserelocatableinc make -j${jobs} } install { make DESTDIR=${destdir} install } }