internal/rosa/package: migrate make

This also introduces the generic helper for unusual build scripts.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-05-19 19:28:18 +09:00
parent 6e8bfa6c4c
commit 548c96c7ec
5 changed files with 95 additions and 31 deletions

View File

@@ -624,6 +624,23 @@ func (s *S) getFrame() azalea.Frame {
// high-level helpers
k("generic"): {F: func(
args azalea.FArgs,
) (v any, set bool, err error) {
var attr GenericHelper
if err = args.Apply(map[unique.Handle[azalea.Ident]]any{
k("mktemp"): &attr.EnterTemp,
k("build"): &attr.Build,
k("check"): &attr.Check,
k("install"): &attr.Install,
}); err != nil {
return
}
v = &attr
set = true
return
}},
k("make"): {F: func(
args azalea.FArgs,
) (v any, set bool, err error) {