userspace

This commit is contained in:
2026-08-18 01:51:35 -04:00
parent 5f93867198
commit 6ad165160e
18 changed files with 687 additions and 0 deletions
+36
View File
@@ -0,0 +1,36 @@
/*
* 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
}
}