All checks were successful
Test / Create distribution (push) Successful in 1m1s
Test / Sandbox (push) Successful in 2m42s
Test / Hakurei (push) Successful in 4m1s
Test / ShareFS (push) Successful in 4m1s
Test / Hpkg (push) Successful in 4m32s
Test / Sandbox (race detector) (push) Successful in 4m58s
Test / Hakurei (race detector) (push) Successful in 6m14s
Test / Flake checks (push) Successful in 1m49s
This is much cleaner to add extra flags to. Signed-off-by: Ophestra <cat@gensokyo.uk>
28 lines
694 B
Go
28 lines
694 B
Go
package rosa
|
|
|
|
import "hakurei.app/internal/pkg"
|
|
|
|
func (t Toolchain) newMeson() pkg.Artifact {
|
|
const (
|
|
version = "1.10.1"
|
|
checksum = "w895BXF_icncnXatT_OLCFe2PYEtg4KrKooMgUYdN-nQVvbFX3PvYWHGEpogsHtd"
|
|
)
|
|
return t.New("meson-"+version, 0, []pkg.Artifact{
|
|
t.Load(Python),
|
|
t.Load(Setuptools),
|
|
}, nil, nil, `
|
|
cd /usr/src/meson
|
|
chmod -R +w meson.egg-info
|
|
python3 setup.py \
|
|
install \
|
|
--prefix=/system \
|
|
--root=/work
|
|
`, pkg.Path(AbsUsrSrc.Append("meson"), true, pkg.NewHTTPGetTar(
|
|
nil, "https://github.com/mesonbuild/meson/releases/download/"+
|
|
version+"/meson-"+version+".tar.gz",
|
|
mustDecode(checksum),
|
|
pkg.TarGzip,
|
|
)))
|
|
}
|
|
func init() { artifactsF[Meson] = Toolchain.newMeson }
|