From d2c6d486b06073aa88ee1912d3587f657cd57304 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Wed, 4 Mar 2026 18:01:18 +0900 Subject: internal/rosa: provide package metadata This had to be done out-of-band because there was no way to efficiently represent these within Artifact. Signed-off-by: Ophestra --- internal/rosa/pcre2.go | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'internal/rosa/pcre2.go') diff --git a/internal/rosa/pcre2.go b/internal/rosa/pcre2.go index 415384e1..53ab3e56 100644 --- a/internal/rosa/pcre2.go +++ b/internal/rosa/pcre2.go @@ -4,7 +4,7 @@ import ( "hakurei.app/internal/pkg" ) -func (t Toolchain) newPCRE2() pkg.Artifact { +func (t Toolchain) newPCRE2() (pkg.Artifact, string) { const ( version = "10.43" checksum = "iyNw-POPSJwiZVJfUK5qACA6q2uMzP-84WieimN_CskaEkuw5fRnRTZhEv6ry2Yo" @@ -28,6 +28,14 @@ ln -s ../system/bin/toybox /bin/echo }, }, Diffutils, - ) + ), version +} +func init() { + artifactsM[PCRE2] = Metadata{ + f: Toolchain.newPCRE2, + + Name: "pcre2", + Description: "a set of C functions that implement regular expression pattern matching", + Website: "https://pcre2project.github.io/pcre2/", + } } -func init() { artifactsF[PCRE2] = Toolchain.newPCRE2 } -- cgit v1.3.1