-
Notifications
You must be signed in to change notification settings - Fork 214
Expand file tree
/
Copy pathsnapcraft.yaml
More file actions
38 lines (38 loc) · 1.17 KB
/
Copy pathsnapcraft.yaml
File metadata and controls
38 lines (38 loc) · 1.17 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
name: gdu-disk-usage-analyzer
version: git
summary: Pretty fast disk usage analyzer written in Go.
description: |
Gdu is intended primarily for SSD disks where it can fully utilize parallel processing.
However HDDs work as well, but the performance gain is not so huge.
confinement: strict
base: core24
platforms:
amd64:
arm64:
armhf:
ppc64el:
riscv64:
s390x:
parts:
gdu:
plugin: go
build-snaps: [go/latest/stable]
source: .
override-build: |
GO111MODULE=on CGO_ENABLED=0 go build \
-trimpath -mod=readonly -modcacherw -pgo=default.pgo \
-ldflags \
"-s -w -extldflags '-static' \
-X 'github.com/dundee/gdu/v5/build.Version=$(git describe)' \
-X 'github.com/dundee/gdu/v5/build.User=$(id -u -n)' \
-X 'github.com/dundee/gdu/v5/build.Time=$(LC_ALL=en_US.UTF-8 date)' \
-X 'github.com/dundee/gdu/v5/build.RootPathPrefix=/var/lib/snapd/hostfs'" \
-o $SNAPCRAFT_PART_INSTALL/gdu \
github.com/dundee/gdu/v5/cmd/gdu
$SNAPCRAFT_PART_INSTALL/gdu -v
apps:
gdu:
command: gdu
plugs:
- mount-observe
- system-backup