-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathio.github.efogdev.mpris-timer.yml
More file actions
44 lines (41 loc) · 1.62 KB
/
io.github.efogdev.mpris-timer.yml
File metadata and controls
44 lines (41 loc) · 1.62 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
id: io.github.efogdev.mpris-timer
runtime: org.gnome.Platform
runtime-version: "49"
sdk: org.gnome.Sdk
command: play-timer
sdk-extensions:
- org.freedesktop.Sdk.Extension.golang
finish-args:
- --socket=wayland
- --socket=fallback-x11
- --socket=pulseaudio
- --share=ipc
- --device=dri
- --talk-name=org.kde.StatusNotifierWatcher # tray support
- --talk-name=org.freedesktop.Notifications # tray support
- --own-name=org.kde.StatusNotifierItem-2-1 # tray support
- --own-name=org.kde.StatusNotifierItem-3-1 # tray support
modules:
- name: play-timer
buildsystem: simple
build-options:
prepend-path: /usr/lib/sdk/golang/bin
env:
GOBIN: /app/bin
GOROOT: /usr/lib/sdk/golang
build-commands:
- . /usr/lib/sdk/golang/enable.sh; export GOPATH=$PWD; go env -w GO111MODULE=off
- go build -pgo default.pgo -tags wayland -trimpath -ldflags="-s -w" -o ./.bin/app ./cmd/main.go
- install -Dm755 .bin/app $FLATPAK_DEST/bin/play-timer
- install -Dm644 internal/ui/res/icon.svg $FLATPAK_DEST/share/icons/hicolor/scalable/apps/$FLATPAK_ID.svg
- install -Dm644 misc/$FLATPAK_ID.desktop $FLATPAK_DEST/share/applications/$FLATPAK_ID.desktop
- install -Dm644 misc/$FLATPAK_ID.metainfo.xml $FLATPAK_DEST/share/metainfo/$FLATPAK_ID.metainfo.xml
- install -Dm644 misc/$FLATPAK_ID.gschema.xml $FLATPAK_DEST/share/glib-2.0/schemas/$FLATPAK_ID.gschema.xml
- glib-compile-schemas $FLATPAK_DEST/share/glib-2.0/schemas
sources:
# - type: dir
# path: .
- type: git
url: https://github.com/efogdev/mpris-timer
tag: 2.2.2
- go.mod.yml