internal/rosa/gtk: fetch glib source via git
All checks were successful
Test / Create distribution (push) Successful in 1m22s
Test / Sandbox (push) Successful in 3m12s
Test / Hakurei (push) Successful in 4m25s
Test / ShareFS (push) Successful in 4m34s
Test / Sandbox (race detector) (push) Successful in 5m43s
Test / Hakurei (race detector) (push) Successful in 6m58s
Test / Flake checks (push) Successful in 1m35s
All checks were successful
Test / Create distribution (push) Successful in 1m22s
Test / Sandbox (push) Successful in 3m12s
Test / Hakurei (push) Successful in 4m25s
Test / ShareFS (push) Successful in 4m34s
Test / Sandbox (race detector) (push) Successful in 5m43s
Test / Hakurei (race detector) (push) Successful in 6m58s
Test / Flake checks (push) Successful in 1m35s
This eliminates xz dependency. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -1,8 +1,6 @@
|
|||||||
package rosa
|
package rosa
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"strings"
|
|
||||||
|
|
||||||
"hakurei.app/fhs"
|
"hakurei.app/fhs"
|
||||||
"hakurei.app/internal/pkg"
|
"hakurei.app/internal/pkg"
|
||||||
)
|
)
|
||||||
@@ -10,16 +8,13 @@ import (
|
|||||||
func (t Toolchain) newGLib() (pkg.Artifact, string) {
|
func (t Toolchain) newGLib() (pkg.Artifact, string) {
|
||||||
const (
|
const (
|
||||||
version = "2.88.0"
|
version = "2.88.0"
|
||||||
checksum = "bCLkAmp1o_Po4cXDbC06AyjLyxkBxyNJnflwBpSdf4W8K6dc9xKj6Pm3JYbHPdDf"
|
checksum = "T79Cg4z6j-sDZ2yIwvbY4ccRv2-fbwbqgcw59F5NQ6qJT6z4v261vbYp3dHO6Ma3"
|
||||||
)
|
)
|
||||||
return t.NewPackage("glib", version, pkg.NewHTTPGet(
|
return t.NewPackage("glib", version, t.NewViaGit(
|
||||||
nil, "https://download.gnome.org/sources/glib/"+
|
"https://gitlab.gnome.org/GNOME/glib.git",
|
||||||
strings.Join(strings.SplitN(version, ".", 3)[:2], ".")+
|
"refs/tags/"+version,
|
||||||
"/glib-"+version+".tar.xz",
|
|
||||||
mustDecode(checksum),
|
mustDecode(checksum),
|
||||||
), &PackageAttr{
|
), &PackageAttr{
|
||||||
SourceKind: SourceKindTarXZ,
|
|
||||||
|
|
||||||
Paths: []pkg.ExecPath{
|
Paths: []pkg.ExecPath{
|
||||||
pkg.Path(fhs.AbsEtc.Append(
|
pkg.Path(fhs.AbsEtc.Append(
|
||||||
"machine-id",
|
"machine-id",
|
||||||
@@ -39,7 +34,6 @@ func (t Toolchain) newGLib() (pkg.Artifact, string) {
|
|||||||
{"Ddefault_library", "both"},
|
{"Ddefault_library", "both"},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
XZ,
|
|
||||||
PythonPackaging,
|
PythonPackaging,
|
||||||
Bash,
|
Bash,
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user