mirror of
https://github.com/siderolabs/extensions.git
synced 2026-05-04 19:56:38 +02:00
46 lines
1.3 KiB
YAML
46 lines
1.3 KiB
YAML
name: fuse3
|
|
variant: scratch
|
|
shell: /bin/bash
|
|
dependencies:
|
|
- stage: base
|
|
steps:
|
|
- sources:
|
|
- url: https://github.com/libfuse/libfuse/releases/download/fuse-{{ .FUSE3_VERSION }}/fuse-{{ .FUSE3_VERSION }}.tar.gz
|
|
destination: fuse.tar.gz
|
|
sha256: {{ .FUSE3_SHA256 }}
|
|
sha512: {{ .FUSE3_SHA512 }}
|
|
prepare:
|
|
- |
|
|
tar -xzf fuse.tar.gz --strip-components=1
|
|
|
|
mkdir -p /rootfs/usr/local/etc
|
|
mkdir -p /rootfs/usr/local/bin
|
|
mkdir -p /rootfs/etc/init.d
|
|
|
|
mkdir _build
|
|
meson setup _build
|
|
meson configure -D useroot=false -D initscriptdir='' -D examples=false -D tests=false _build
|
|
build:
|
|
- |
|
|
ninja -C _build
|
|
install:
|
|
- |
|
|
DESTDIR=/rootfs ninja -C _build install
|
|
test:
|
|
- |
|
|
mkdir -p /extensions-validator-rootfs
|
|
cp -r /rootfs/ /extensions-validator-rootfs/rootfs
|
|
cp /pkg/manifest.yaml /extensions-validator-rootfs/manifest.yaml
|
|
/extensions-validator validate --rootfs=/extensions-validator-rootfs --pkg-name="${PKG_NAME}"
|
|
sbom:
|
|
outputPath: /rootfs/usr/local/share/spdx/fuse3.spdx.json
|
|
version: {{ .FUSE3_VERSION }}
|
|
licenses:
|
|
- GPL-2.0
|
|
- LGPL-2.1
|
|
finalize:
|
|
- from: /rootfs
|
|
to: /rootfs
|
|
- from: /pkg/manifest.yaml
|
|
to: /
|