All checks were successful
Test / Create distribution (push) Successful in 29s
Test / ShareFS (push) Successful in 36s
Test / Sandbox (race detector) (push) Successful in 43s
Test / Sandbox (push) Successful in 44s
Test / Hakurei (race detector) (push) Successful in 49s
Test / Hpkg (push) Successful in 46s
Test / Hakurei (push) Successful in 2m50s
Test / Flake checks (push) Successful in 1m46s
This makes the helper useful for non-autotools build systems. Signed-off-by: Ophestra <cat@gensokyo.uk>
31 lines
815 B
Go
31 lines
815 B
Go
package rosa
|
|
|
|
import "hakurei.app/internal/pkg"
|
|
|
|
func (t Toolchain) newLibucontext() pkg.Artifact {
|
|
const (
|
|
version = "1.5"
|
|
checksum = "Ggk7FMmDNBdCx1Z9PcNWWW6LSpjGYssn2vU0GK5BLXJYw7ZxZbA2m_eSgT9TFnIG"
|
|
)
|
|
return t.NewViaMake("libucontext", version, t.NewPatchedSource(
|
|
"libucontext", version, pkg.NewHTTPGetTar(
|
|
nil, "https://github.com/kaniini/libucontext/archive/refs/tags/"+
|
|
"libucontext-"+version+".tar.gz",
|
|
mustDecode(checksum),
|
|
pkg.TarGzip,
|
|
), false,
|
|
), &MakeAttr{
|
|
Writable: true,
|
|
OmitDefaults: true,
|
|
SkipConfigure: true,
|
|
InPlace: true,
|
|
|
|
ScriptEarly: "cd /usr/src/libucontext",
|
|
Make: []string{
|
|
"ARCH=" + linuxArch(),
|
|
},
|
|
ScriptInstall: "make prefix=/system DESTDIR=/work install",
|
|
})
|
|
}
|
|
func init() { artifactsF[Libucontext] = Toolchain.newLibucontext }
|