{ "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" } ] } ] }