aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/libucontext.go
blob: 83096ef81e74eb8da92f6c2c4bb454e7fc26c63d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package rosa

import "hakurei.app/internal/pkg"

func (t Toolchain) newLibucontext() (pkg.Artifact, string) {
	const (
		version  = "1.5.1"
		checksum = "mUgeyJknjMxT-5fORzz-rqhZfP3Y7EZGBhOwvhuX7MsF4Pk9wkuwtrLf5IML-jWu"
	)
	return t.NewPackage("libucontext", version, newFromGitHub(
		"kaniini/libucontext",
		"libucontext-"+version,
		checksum,
	), &PackageAttr{
		// uses source tree as scratch space
		Writable:    true,
		Chmod:       true,
		EnterSource: true,
	}, &MakeHelper{
		OmitDefaults:  true,
		SkipConfigure: true,
		InPlace:       true,
		Make: []string{
			"ARCH=" + t.linuxArch(),
		},
		Install: "make prefix=/system DESTDIR=/work install",
	}), version
}
func init() {
	native.MustRegister(&Artifact{
		f: Toolchain.newLibucontext,

		Name:        "libucontext",
		Description: "ucontext implementation featuring glibc-compatible ABI",
		Website:     "https://github.com/kaniini/libucontext/",

		ID: 17085,
	})
}