fork/gdu

git clone https://git.julia.blue/fork/gdu

Daniel Mildeci: define platforms for snapcraft0f84f43

subvolume
1.2 KiB38 linesraw
1name: gdu-disk-usage-analyzer
2version: git
3summary: Pretty fast disk usage analyzer written in Go.
4description: |
5  Gdu is intended primarily for SSD disks where it can fully utilize parallel processing.
6  However HDDs work as well, but the performance gain is not so huge.
7confinement: strict
8base: core24
9platforms:
10  amd64:
11  arm64:
12  armhf:
13  ppc64el:
14  riscv64:
15  s390x:
16parts:
17  gdu:
18    plugin: go
19    build-snaps: [go/latest/stable]
20    source: .
21    override-build: |
22          GO111MODULE=on CGO_ENABLED=0 go build \
23            -trimpath -mod=readonly -modcacherw -pgo=default.pgo \
24            -ldflags \
25              "-s -w -extldflags '-static' \
26              -X 'github.com/dundee/gdu/v5/build.Version=$(git describe)' \
27              -X 'github.com/dundee/gdu/v5/build.User=$(id -u -n)' \
28              -X 'github.com/dundee/gdu/v5/build.Time=$(LC_ALL=en_US.UTF-8 date)' \
29              -X 'github.com/dundee/gdu/v5/build.RootPathPrefix=/var/lib/snapd/hostfs'" \
30            -o $SNAPCRAFT_PART_INSTALL/gdu \
31            github.com/dundee/gdu/v5/cmd/gdu
32          $SNAPCRAFT_PART_INSTALL/gdu -v
33apps:
34  gdu:
35    command: gdu
36    plugs:
37    - mount-observe
38    - system-backup