-
Notifications
You must be signed in to change notification settings - Fork 0
/
co.honnef.Gotraceui.json
72 lines (72 loc) · 2.4 KB
/
co.honnef.Gotraceui.json
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{
"app-id": "co.honnef.Gotraceui",
"runtime": "org.freedesktop.Platform",
"runtime-version": "23.08",
"sdk": "org.freedesktop.Sdk",
"sdk-extensions": [
"org.freedesktop.Sdk.Extension.golang"
],
"command": "gotraceui",
"finish-args": [
"--device=dri",
"--socket=wayland",
"--filesystem=host"
],
"build-options": {
"env": [
"GOBIN=/app/bin",
"GOROOT=/usr/lib/sdk/golang"
]
},
"modules": [
{
"name": "gotraceui",
"buildsystem": "simple",
"build-commands": [
"cd src && $GOROOT/bin/go build -trimpath -o ../gotraceui -tags nox11 -ldflags \"-X gioui.org/app.ID=$FLATPAK_ID\" ./cmd/gotraceui",
"install -Dm00755 gotraceui $FLATPAK_DEST/bin/gotraceui",
"install -Dm00644 $FLATPAK_ID.metainfo.xml $FLATPAK_DEST/share/appdata/$FLATPAK_ID.metainfo.xml",
"install -Dm00644 gotraceui.pdf $FLATPAK_DEST/share/doc/$FLATPAK_ID/gotraceui.pdf",
"install -Dm00644 src/LICENSE* $FLATPAK_DEST/share/doc/$FLATPAK_ID/",
"cd release/share && find . -type f -exec install -Dm00644 {} $FLATPAK_DEST/share/{} \\;",
"sed -i -e /^Icon/s/gotraceui/$FLATPAK_ID/ $FLATPAK_DEST/share/applications/$FLATPAK_ID.desktop",
"find $FLATPAK_DEST/share -name 1024x1024 -type d -exec rm -rf {} +",
"find $FLATPAK_DEST/share -name gotraceui.png -execdir mv {} $FLATPAK_ID.png \\;",
"find $FLATPAK_DEST/share -name gotraceui.svg -execdir mv {} $FLATPAK_ID.svg \\;",
"find $FLATPAK_DEST/share -name x-gotraceui.xml -execdir mv {} $FLATPAK_ID.xml \\;"
],
"sources": [
{
"type": "archive",
"url": "https://proxy.golang.org/honnef.co/go/gotraceui/@v/v0.4.0.zip",
"sha256": "42bebe5fc147ab9d989f01445ace2a0967fd706489a71efc540e0b83f3366d89",
"archive-type": "zip",
"strip-components": 3,
"dest": "src"
},
{
"type": "archive",
"url": "https://github.com/dominikh/gotraceui/archive/refs/tags/v0.4.0.zip",
"sha256": "bcb14b5c342aae0dd1b5b807a1dacac980bf298f529022f96a4e62fcc5b55dbe",
"archive-type": "zip",
"strip-components": 1,
"dest": "release"
},
{
"type": "file",
"url": "https://github.com/dominikh/gotraceui/releases/download/v0.4.0/gotraceui.pdf",
"sha256": "01b9cc4c92f863b67aa77f752bc3413f1823888d3416eb0f646c0b6ab7e25633"
},
{
"type": "dir",
"path": "./vendor",
"dest": "src/vendor"
},
{
"type": "file",
"path": "co.honnef.Gotraceui.metainfo.xml"
}
]
}
]
}