aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/fuse.go
blob: c04e8de635c4559df5408e63d75a82cc7415e2cc (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
40
41
42
package rosa

import "hakurei.app/internal/pkg"

func (t Toolchain) newFuse() (pkg.Artifact, string) {
	const (
		version  = "3.18.2"
		checksum = "iL-7b7eUtmlVSf5cSq0dzow3UiqSjBmzV3cI_ENPs1tXcHdktkG45j1V12h-4jZe"
	)
	return t.NewPackage("fuse", version, pkg.NewHTTPGetTar(
		nil, "https://github.com/libfuse/libfuse/releases/download/"+
			"fuse-"+version+"/fuse-"+version+".tar.gz",
		mustDecode(checksum),
		pkg.TarGzip,
	), nil, &MesonHelper{
		Setup: [][2]string{
			{"Ddefault_library", "both"},
			{"Dtests", "true"},
			{"Duseroot", "false"},
			{"Dinitscriptdir", "/system/etc"},
		},

		ScriptCompiled: "python3 -m pytest test/",
		// this project uses pytest
		SkipTest: true,
	},
		PythonPyTest,

		KernelHeaders,
	), version
}
func init() {
	artifactsM[Fuse] = Metadata{
		f: Toolchain.newFuse,

		Name:        "fuse",
		Description: "the reference implementation of the Linux FUSE interface",
		Website:     "https://github.com/libfuse/libfuse/",

		ID: 861,
	}
}