internal/rosa: gettext artifact
All checks were successful
Test / Create distribution (push) Successful in 49s
Test / Sandbox (push) Successful in 2m34s
Test / Hakurei (push) Successful in 4m5s
Test / ShareFS (push) Successful in 4m27s
Test / Hpkg (push) Successful in 5m5s
Test / Sandbox (race detector) (push) Successful in 5m15s
Test / Hakurei (race detector) (push) Successful in 6m10s
Test / Flake checks (push) Successful in 1m43s

Compile time dependency of git.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-01-21 21:52:50 +09:00
parent eb1060f395
commit 77821feb8b

View File

@@ -72,3 +72,26 @@ make DESTDIR=/work install
pkg.TarGzip, pkg.TarGzip,
))) )))
} }
// NewGettext returns a [pkg.Artifact] containing an installation of GNU gettext.
func (t Toolchain) NewGettext() pkg.Artifact {
const (
version = "0.26"
checksum = "IMu7yDZX7xL5UO1ZxXc-iBMbY9LLEUlOroyuSlHMZwg9MKtxG7HIm8F2LheDua0y"
)
return t.New("gettext-"+version, []pkg.Artifact{
t.NewMake(),
}, nil, nil, `
cd "$(mktemp -d)"
/usr/src/gettext/configure \
--prefix=/system \
--build="${ROSA_TRIPLE}"
make "-j$(nproc)"
make DESTDIR=/work install
`, pkg.Path(AbsUsrSrc.Append("gettext"), false, pkg.NewHTTPGetTar(
nil,
"https://ftp.gnu.org/pub/gnu/gettext/gettext-"+version+".tar.gz",
mustDecode(checksum),
pkg.TarGzip,
)))
}