-
Notifications
You must be signed in to change notification settings - Fork 213
Expand file tree
/
Copy pathpkg.yaml
More file actions
45 lines (43 loc) · 1.29 KB
/
pkg.yaml
File metadata and controls
45 lines (43 loc) · 1.29 KB
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
43
44
45
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: /