aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal
diff options
context:
space:
mode:
Diffstat (limited to 'internal')
-rw-r--r--internal/rosa/all.go1
-rw-r--r--internal/rosa/fuse.go45
2 files changed, 46 insertions, 0 deletions
diff --git a/internal/rosa/all.go b/internal/rosa/all.go
index 4e0207ea..dd275667 100644
--- a/internal/rosa/all.go
+++ b/internal/rosa/all.go
@@ -18,6 +18,7 @@ const (
CMake
Coreutils
Diffutils
+ Fuse
Gettext
Git
Go
diff --git a/internal/rosa/fuse.go b/internal/rosa/fuse.go
new file mode 100644
index 00000000..6f907ed9
--- /dev/null
+++ b/internal/rosa/fuse.go
@@ -0,0 +1,45 @@
+package rosa
+
+import "hakurei.app/internal/pkg"
+
+func (t Toolchain) newFuse() pkg.Artifact {
+ const (
+ version = "3.18.1"
+ checksum = "COb-BgJRWXLbt9XUkNeuiroQizpMifXqxgieE1SlkMXhs_WGSyJStrmyewAw2hd6"
+ )
+ return t.New("fuse-"+version, false, []pkg.Artifact{
+ t.Load(Python),
+ t.Load(Meson),
+ t.Load(Ninja),
+
+ t.Load(IniConfig),
+ t.Load(Packaging),
+ t.Load(Pluggy),
+ t.Load(Pygments),
+ t.Load(PyTest),
+
+ t.Load(KernelHeaders),
+ }, nil, nil, `
+cd "$(mktemp -d)"
+meson setup \
+ --reconfigure \
+ --buildtype=release \
+ --prefix=/system \
+ --prefer-static \
+ -Dtests=true \
+ -Duseroot=false \
+ -Dinitscriptdir=/system/init.d \
+ -Ddefault_library=both \
+ . /usr/src/fuse
+meson compile
+python3 -m pytest test/
+meson install \
+ --destdir=/work
+`, pkg.Path(AbsUsrSrc.Append("fuse"), false, pkg.NewHTTPGetTar(
+ nil, "https://github.com/libfuse/libfuse/releases/download/"+
+ "fuse-"+version+"/fuse-"+version+".tar.gz",
+ mustDecode(checksum),
+ pkg.TarGzip,
+ )))
+}
+func init() { artifactsF[Fuse] = Toolchain.newFuse }