All checks were successful
Test / Create distribution (push) Successful in 1m0s
Test / Sandbox (push) Successful in 2m43s
Test / ShareFS (push) Successful in 4m0s
Test / Hpkg (push) Successful in 4m29s
Test / Sandbox (race detector) (push) Successful in 5m6s
Test / Hakurei (race detector) (push) Successful in 5m57s
Test / Hakurei (push) Successful in 2m41s
Test / Flake checks (push) Successful in 1m45s
This migrates artifacts that the helper cannot produce an identical instance of. Signed-off-by: Ophestra <cat@gensokyo.uk>
35 lines
739 B
Go
35 lines
739 B
Go
package rosa
|
|
|
|
import (
|
|
"strings"
|
|
|
|
"hakurei.app/internal/pkg"
|
|
)
|
|
|
|
func (t Toolchain) newLibxml2() pkg.Artifact {
|
|
const (
|
|
version = "2.15.1"
|
|
checksum = "pYzAR3cNrEHezhEMirgiq7jbboLzwMj5GD7SQp0jhSIMdgoU4G9oU9Gxun3zzUIU"
|
|
)
|
|
return t.NewViaMake("libxml2", version, pkg.NewHTTPGet(
|
|
nil, "https://download.gnome.org/sources/libxml2/"+
|
|
strings.Join(strings.Split(version, ".")[:2], ".")+
|
|
"/libxml2-"+version+".tar.xz",
|
|
mustDecode(checksum),
|
|
), &MakeAttr{
|
|
ScriptEarly: `
|
|
cd /usr/src/
|
|
tar xf libxml2.tar.xz
|
|
mv libxml2-` + version + ` libxml2
|
|
`,
|
|
Configure: [][2]string{
|
|
{"enable-static"},
|
|
},
|
|
SourceSuffix: ".tar.xz",
|
|
},
|
|
t.Load(Diffutils),
|
|
t.Load(XZ),
|
|
)
|
|
}
|
|
func init() { artifactsF[Libxml2] = Toolchain.newLibxml2 }
|