aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/fuse.go
blob: 8ce07436fb19263765fca7357fc790ee59b6c841 (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
package rosa

import "hakurei.app/internal/pkg"

func (t Toolchain) newFuse() pkg.Artifact {
	const (
		version  = "3.18.1"
		checksum = "COb-BgJRWXLbt9XUkNeuiroQizpMifXqxgieE1SlkMXhs_WGSyJStrmyewAw2hd6"
	)
	return t.NewViaMeson("fuse", version, pkg.NewHTTPGetTar(
		nil, "https://github.com/libfuse/libfuse/releases/download/"+
			"fuse-"+version+"/fuse-"+version+".tar.gz",
		mustDecode(checksum),
		pkg.TarGzip,
	), &MesonAttr{
		Configure: [][2]string{
			{"Ddefault_library", "both"},
			{"Dtests", "true"},
			{"Duseroot", "false"},
			{"Dinitscriptdir", "/system/init.d"},
		},

		ScriptCompiled: "python3 -m pytest test/",
		// this project uses pytest
		SkipCheck: true,
	},
		t.Load(IniConfig),
		t.Load(Packaging),
		t.Load(Pluggy),
		t.Load(Pygments),
		t.Load(PyTest),

		t.Load(KernelHeaders),
	)
}
func init() { artifactsF[Fuse] = Toolchain.newFuse }