-
Notifications
You must be signed in to change notification settings - Fork 13
/
com.github.alexays.waybar.yaml
199 lines (199 loc) · 7.79 KB
/
com.github.alexays.waybar.yaml
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
app-id: com.github.alexays.waybar
runtime: org.freedesktop.Platform
runtime-version: '21.08'
sdk: org.freedesktop.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.golang
command: waybar
finish-args:
- --device=dri
# workaround for /dev/rfkill access
- --device=all
- --share=network
- --socket=pulseaudio
- --socket=session-bus
- --socket=system-bus
- --socket=wayland
# workaround for missing icon exports
# flatpak does not expand variables given to --env, so it's not possible to include in
# XDG_DATA_DIRS the icons exports from the user flatpak installation
# e.g. --env=XDG_DATA_DIRS=$XDG_DATA_HOME/flatpak/exports/share:...
# so a user override should be added, taking in account the content of XDG_DATA_DIRS below
# e.g. $ flatpak override --user --env=XDG_DATA_DIRS=$XDG_DATA_HOME/flatpak/exports/share:... com.github.alexays.waybar
# related bug reports:
# https://github.com/flatpak/flatpak/issues/1415
# https://github.com/flatpak/flatpak/issues/3800
- --filesystem=/var/lib/flatpak:ro
- --filesystem=xdg-data/flatpak:ro
- --env=XDG_DATA_DIRS=/var/lib/flatpak/exports/share:/app/share:/usr/share:/usr/share/runtime/share:/run/host/user-share:/run/host/share
# sway ipc socket workaround
# by default sway socket is ${XDG_RUNTIME_DIR}/sway-ipc.<uid>.<pid>.sock
# so we need to change this to a flatpak mount-able folder
# 1. export SWAYSOCK=$XDG_RUNTIME_DIR/sway/sway-ipc.sock
# 2. mkdir $XDG_RUNTIME_DIR/sway/sway-ipc.sock
# or use tmpfiles.d by creating ~/.config/user-tmpfiles.d/sway.conf
# with
# d %t/sway 0700 - - - -
# and enable systemd-tmpfiles-{clean.timer,setup.service}
# related bug reports:
# https://github.com/swaywm/sway/issues/5624
- --filesystem=xdg-run/sway
# give access to flatpak apps runtime dirs
# this can be a workaround for the system tray icon problem with QT when used with
# XDG_RUNTIME_DIR=$XDG_RUNTIME_DIR/app/$FLATPAK_ID
- --filesystem=xdg-run/app:ro
# make sure the app runtime dir is still writable
- --filesystem=xdg-run/app/com.github.alexays.waybar
cleanup:
- /include
- /lib/pkgconfig
- /share/devhelp
- /share/doc
- /share/gtk-doc
- '*.a'
- '*.la'
modules:
- name: waybar
buildsystem: meson
config-opts:
- --wrap-mode=nofallback
- -Dsystemd=disabled
post-install:
- install -Dm755 ../resources/custom_modules/mediaplayer.py -t /app/bin/
sources:
- type: archive
url: https://github.com/Alexays/Waybar/archive/0.9.8.tar.gz
sha256: 3f067c484aaee3e7d8ded382e72c280a92913b0c4e8a20d0ac9afdf8baf19405
x-checker-data:
type: anitya
project-id: 21287
stable-only: true
url-template: https://github.com/Alexays/Waybar/archive/$version.tar.gz
modules:
- name: chrono-date
buildsystem: cmake
config-opts:
- -DCMAKE_BUILD_TYPE=None
- -DBUILD_SHARED_LIBS=true
- -DBUILD_TZ_LIB=true
- -DUSE_SYSTEM_TZ_DB=true
- -DENABLE_DATE_TESTING=false
- -Wno-dev
sources:
- type: archive
url: https://github.com/HowardHinnant/date/archive/v3.0.1.tar.gz
sha256: 7a390f200f0ccd207e8cff6757e04817c1a0aec3e327b006b7eb451c57ee3538
x-checker-data:
type: anitya
project-id: 221644
stable-only: true
url-template: https://github.com/HowardHinnant/date/archive/v$version.tar.gz
- name: fmt
buildsystem: cmake
config-opts:
- -DCMAKE_BUILD_TYPE=None
- -DBUILD_SHARED_LIBS=true
sources:
- type: archive
url: https://github.com/fmtlib/fmt/archive/8.0.1.tar.gz
sha256: b06ca3130158c625848f3fb7418f235155a4d389b2abc3a6245fb01cb0eb1e01
x-checker-data:
type: anitya
project-id: 11526
stable-only: true
url-template: https://github.com/fmtlib/fmt/archive/$version.tar.gz
- ../shared-modules/gtk-layer-shell/gtk-layer-shell.json
- ../shared-modules/gtkmm3/gtkmm3.json
- name: jsoncpp
buildsystem: meson
config-opts:
- --default-library=shared
sources:
- type: archive
url: https://github.com/open-source-parsers/jsoncpp/archive/1.9.4/jsoncpp-1.9.4.tar.gz
sha256: e34a628a8142643b976c7233ef381457efad79468c67cb1ae0b83a33d7493999
x-checker-data:
type: anitya
project-id: 7483
stable-only: true
url-template: https://github.com/open-source-parsers/jsoncpp/archive/$version/jsoncpp-$version.tar.gz
- ../flathub-shared-modules/libappindicator/libappindicator-gtk3-12.10.json
- name: libmpdclient
buildsystem: meson
sources:
- type: archive
url: https://www.musicpd.org/download/libmpdclient/2/libmpdclient-2.19.tar.xz
sha256: 158aad4c2278ab08e76a3f2b0166c99b39fae00ee17231bd225c5a36e977a189
x-checker-data:
type: anitya
project-id: 21364
stable-only: true
url-template: https://www.musicpd.org/download/libmpdclient/$version0/libmpdclient-$version0.$version1.tar.xz
- ../shared-modules/libnl/libnl.json
- name: spdlog
buildsystem: cmake
config-opts:
- -DSPDLOG_BUILD_BENCH=OFF
- -DSPDLOG_FMT_EXTERNAL=ON
- -DSPDLOG_BUILD_SHARED=ON
- -DCMAKE_BUILD_TYPE=None
- -DCMAKE_INSTALL_LIBDIR=lib
- -Wno-dev
sources:
- type: archive
url: https://github.com/gabime/spdlog/archive/v1.9.2.tar.gz
sha256: 6fff9215f5cb81760be4cc16d033526d1080427d236e86d70bb02994f85e3d38
x-checker-data:
type: anitya
project-id: 15599
stable-only: true
url-template: https://github.com/gabime/spdlog/archive/v$version.tar.gz
- ../shared-modules/flatpak-spawn-wrappers/swaymsg.json
# TODO: maybe switch to the flatpak-spawn wrapper
- ../shared-modules/jq/jq.json
# dependency of mediaplayer.py: custom media module
- name: playerctl
buildsystem: meson
sources:
- type: archive
url: https://github.com/altdesktop/playerctl/archive/v2.4.1.tar.gz
sha256: 75957ad5071956f563542c7557af16a57e40b4a7f66bc9b6373d022ec5eef548
x-checker-data:
type: anitya
project-id: 18550
stable-only: true
url-template: https://github.com/altdesktop/playerctl/archive/v$version.tar.gz
# TODO: enable this
# - name: waybar-mpris
# buildsystem: simple
# build-options:
# env:
# - GOBIN=/app/bin/
# build-args:
# - --share=network
# build-commands:
# - |
# . /usr/lib/sdk/golang/enable.sh
# export GOPATH=$PWD
# #go get git.hrfee.pw/hrfee/waybar-mpris
# go install git.hrfee.pw/hrfee/waybar-mpris
# sources:
# # generate with:
# # flatpak-builder-tools/go-get/flatpak-go-get-generator.py .flatpak-builder/build/waybar-mpris/
# # cat waybar-mpris-sources.json | yq -y
# - type: git
# url: https://github.com/spf13/pflag
# commit: 85dd5c8bc61cfa382fecd072378089d4e856579d
# dest: src/github.com/spf13/pflag
# - type: git
# url: https://github.com/hpcloud/tail
# commit: a1dbeea552b7c8df4b542c66073e393de198a800
# dest: src/github.com/hpcloud/tail
# - type: git
# url: https://github.com/godbus/dbus
# commit: d8e3131007fc21270a320fa54e10eb5011683fce
# dest: src/github.com/godbus/dbus
# - type: git
# url: https://git.hrfee.pw/hrfee/waybar-mpris.git
# commit: 9b02fc285119ce140bbc6aa64936cc6fc6165cd1
# dest: src/git.hrfee.pw/hrfee/waybar-mpris