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/xcb.go | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) (limited to 'internal/rosa/xcb.go') diff --git a/internal/rosa/xcb.go b/internal/rosa/xcb.go index 2f9abfc7..b27a4b98 100644 --- a/internal/rosa/xcb.go +++ b/internal/rosa/xcb.go @@ -2,7 +2,7 @@ package rosa import "hakurei.app/internal/pkg" -func (t Toolchain) newXCBProto() pkg.Artifact { +func (t Toolchain) newXCBProto() (pkg.Artifact, string) { const ( version = "1.17.0" checksum = "_NtbKaJ_iyT7XiJz25mXQ7y-niTzE8sHPvLXZPcqtNoV_-vTzqkezJ8Hp2U1enCv" @@ -13,11 +13,19 @@ func (t Toolchain) newXCBProto() pkg.Artifact { pkg.TarGzip, ), nil, (*MakeHelper)(nil), Python, - ) + ), version +} +func init() { + artifactsM[XCBProto] = Metadata{ + f: Toolchain.newXCBProto, + + Name: "xcb-proto", + Description: "XML-XCB protocol descriptions used by libxcb for the X11 protocol & extensions", + Website: "https://gitlab.freedesktop.org/xorg/proto/xcbproto", + } } -func init() { artifactsF[XCBProto] = Toolchain.newXCBProto } -func (t Toolchain) newXCB() pkg.Artifact { +func (t Toolchain) newXCB() (pkg.Artifact, string) { const ( version = "1.17.0" checksum = "hjjsc79LpWM_hZjNWbDDS6qRQUXREjjekS6UbUsDq-RR1_AjgNDxhRvZf-1_kzDd" @@ -33,6 +41,14 @@ func (t Toolchain) newXCB() pkg.Artifact { XCBProto, Xproto, LibXau, - ) + ), version +} +func init() { + artifactsM[XCB] = Metadata{ + f: Toolchain.newXCB, + + Name: "xcb", + Description: "The X protocol C-language Binding", + Website: "https://xcb.freedesktop.org/", + } } -func init() { artifactsF[XCB] = Toolchain.newXCB } -- cgit v1.3.1