internal/rosa/package: migrate perl Module::Build

This is now possible via the generic helper.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-05-20 04:48:03 +09:00
parent 47f4e287fc
commit 1d3d621e2f
2 changed files with 31 additions and 35 deletions

View File

@@ -46,6 +46,37 @@ chmod +w /system/bin && rm -f /system/bin/ps # perl does not like toybox ps
};
}
package perl-Module-Build {
description = "build and install Perl modules";
website = "https://metacpan.org/release/Module-Build";
anitya = 3077;
version* = "0.4234";
source = remoteCPAN {
author = "LEONT";
name = "Module-Build";
version = version;
checksum = "ZKxEFG4hE1rqZt52zBL2LRZBMkYzhjb5-cTBXcsyA52EbPeeYyVxU176yAea8-Di";
};
writable = true;
chmod = true;
exec = generic {
build = `
perl Build.PL --prefix=/system
./Build build`;
check = `
./Build test`;
install = `
./Build install --destdir=/work
`;
};
inputs = [ perl ];
runtime = [ perl ];
}
package perl-Locale-gettext {
description = "message handling functions";
website = "https://metacpan.org/release/Locale-gettext";