All checks were successful
Test / Create distribution (push) Successful in 59s
Test / Sandbox (push) Successful in 2m32s
Test / Hakurei (push) Successful in 3m39s
Test / ShareFS (push) Successful in 3m44s
Test / Sandbox (race detector) (push) Successful in 5m0s
Test / Hakurei (race detector) (push) Successful in 5m56s
Test / Flake checks (push) Successful in 1m29s
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>
60 lines
1.2 KiB
Go
60 lines
1.2 KiB
Go
package rosa
|
|
|
|
import (
|
|
"strings"
|
|
|
|
"hakurei.app/container/fhs"
|
|
"hakurei.app/internal/pkg"
|
|
)
|
|
|
|
func (t Toolchain) newGLib() (pkg.Artifact, string) {
|
|
const (
|
|
version = "2.86.4"
|
|
checksum = "AfTjBrrxtXXPL6dFa1LfTe40PyPSth62CoIkM5m_VJTUngGLOFHw6I4XE7RGQE8G"
|
|
)
|
|
return t.NewPackage("glib", version, pkg.NewHTTPGet(
|
|
nil, "https://download.gnome.org/sources/glib/"+
|
|
strings.Join(strings.SplitN(version, ".", 3)[:2], ".")+
|
|
"/glib-"+version+".tar.xz",
|
|
mustDecode(checksum),
|
|
), &PackageAttr{
|
|
SourceKind: sourceTarXZ,
|
|
|
|
Paths: []pkg.ExecPath{
|
|
pkg.Path(fhs.AbsEtc.Append(
|
|
"machine-id",
|
|
), false, pkg.NewFile(
|
|
"glib-machine-id",
|
|
[]byte("ffffffffffffffffffffffffffffffff\n"),
|
|
)),
|
|
pkg.Path(AbsSystem.Append(
|
|
"var/lib/dbus/machine-id",
|
|
), false, pkg.NewFile(
|
|
"glib-machine-id",
|
|
[]byte("fefefefefefefefefefefefefefefefe\n"),
|
|
)),
|
|
},
|
|
}, &MesonHelper{
|
|
Setup: [][2]string{
|
|
{"Ddefault_library", "both"},
|
|
},
|
|
},
|
|
XZ,
|
|
Packaging,
|
|
Bash,
|
|
|
|
PCRE2,
|
|
Libffi,
|
|
Zlib,
|
|
), version
|
|
}
|
|
func init() {
|
|
artifactsM[GLib] = Metadata{
|
|
f: Toolchain.newGLib,
|
|
|
|
Name: "glib",
|
|
Description: "the GNU library of miscellaneous stuff",
|
|
Website: "https://gitlab.gnome.org/GNOME/glib/",
|
|
}
|
|
}
|