diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-03-04 18:01:18 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-03-05 00:20:27 +0900 |
| commit | d2c6d486b06073aa88ee1912d3587f657cd57304 (patch) | |
| tree | 42e7df590ee8cda255e4cd35f9bd5ff7f9b2f94f /internal/rosa/bzip2.go | |
| parent | 6fdd800b2b421b32e7db373b576433126c4652a2 (diff) | |
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 <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/bzip2.go')
| -rw-r--r-- | internal/rosa/bzip2.go | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/internal/rosa/bzip2.go b/internal/rosa/bzip2.go index e32b3507..87c56b93 100644 --- a/internal/rosa/bzip2.go +++ b/internal/rosa/bzip2.go @@ -2,7 +2,7 @@ package rosa import "hakurei.app/internal/pkg" -func (t Toolchain) newBzip2() pkg.Artifact { +func (t Toolchain) newBzip2() (pkg.Artifact, string) { const ( version = "1.0.8" checksum = "cTLykcco7boom-s05H1JVsQi1AtChYL84nXkg_92Dm1Xt94Ob_qlMg_-NSguIK-c" @@ -23,6 +23,14 @@ func (t Toolchain) newBzip2() pkg.Artifact { "CC=cc", }, Install: "make PREFIX=/work/system install", - }) + }), version +} +func init() { + artifactsM[Bzip2] = Metadata{ + f: Toolchain.newBzip2, + + Name: "bzip2", + Description: "a freely available, patent free, high-quality data compressor", + Website: "https://sourceware.org/bzip2/", + } } -func init() { artifactsF[Bzip2] = Toolchain.newBzip2 } |
