/
snapcraft.yaml
246 lines (231 loc) · 5.95 KB
/
snapcraft.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
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
name: clementine
adopt-info: clementine
summary: modern music player
description: |
Clementine is a modern music player and library organizer
grade: stable
confinement: strict
base: core18
compression: lzo
assumes:
- command-chain
license: GPL-3.0
architectures:
- build-on: amd64
- build-on: i386
- build-on: arm64
parts:
homeishome-launch:
plugin: nil
stage-snaps:
- homeishome-launch
desktop-qt5:
build-packages:
- build-essential
- qtbase5-dev
- dpkg-dev
make-parameters:
- FLAVOR=qt5
plugin: make
source: https://github.com/ubuntu/snapcraft-desktop-helpers.git
source-subdir: qt
stage-packages:
- libqt5gui5
- libqt5svg5
- libgdk-pixbuf2.0-0
- locales-all
- xdg-user-dirs
- fcitx-frontend-qt5
- libxkbcommon0
- ttf-ubuntu-font-family
- dmz-cursor-theme
- light-themes
- gnome-themes-standard
- shared-mime-info
- adwaita-icon-theme
- oxygen-icon-theme
- breeze-icon-theme
- try: [appmenu-qt5]
alsa-lib:
plugin: autotools
source: https://www.alsa-project.org/files/pub/lib/alsa-lib-1.1.5.tar.bz2
configflags:
- --prefix=/usr
- --sysconfdir=/etc
- --libexec=/usr/lib
- --libdir=/usr/lib
- --localstatedir=/var
- --with-configdir=/snap/$SNAPCRAFT_PROJECT_NAME/current/usr/share/alsa
- --with-plugindir=/snap/$SNAPCRAFT_PROJECT_NAME/current/usr/lib/alsa-lib
- --disable-static
stage:
- usr/include
- usr/lib
prime:
- -usr/bin
- -usr/include
- -usr/lib/pkgconfig
- -usr/share/alsa/alsa.conf
- -usr/share/alsa/pcm
- -usr/share/alsa/topology/broadwell
clementine:
plugin: cmake
source-type: git
source: https://github.com/clementine-player/Clementine
after:
- alsa-lib
- desktop-qt5
override-build: |
cmake ../src -DCMAKE_INSTALL_PREFIX=/usr
make -j $(getconf _NPROCESSORS_ONLN)
make DESTDIR=$SNAPCRAFT_PART_INSTALL install
sed -i 's|Icon=clementine|Icon=/usr/share/icons/hicolor/scalable/apps/clementine\.svg|' $SNAPCRAFT_PART_INSTALL/usr/share/applications/org.clementine_player.Clementine.desktop
sed -i 's|TryExec=.*|TryExec=/snap/bin/clementine|' $SNAPCRAFT_PART_INSTALL/usr/share/applications/org.clementine_player.Clementine.desktop
snapcraftctl set-version "$(cat $SNAPCRAFT_PART_BUILD/src/version.h | grep CLEMENTINE_VERSION_DISPLAY | awk '{ print $3 }' | tr -d '"' | cut -d "-" -f1-2)"
build-packages:
- cmake
- make
- gcc
- g++
- protobuf-compiler
- gettext
- libglib2.0-dev
- libgnutls28-dev
- libdbus-1-dev
- libprotobuf-dev
- libboost-dev
- libsqlite3-dev
- libasound2-dev
- libpulse-dev
- libtag1-dev
- qtbase5-dev
- qtbase5-dev-tools
- qtbase5-private-dev
- qttools5-dev
- libqt5x11extras5-dev
- libqt5opengl5-dev
- libgstreamer1.0-dev
- libgstreamer-plugins-base1.0-dev
- libcdio-dev
- libgpod-dev
- libmtp-dev
- libplist-dev
- libusbmuxd-dev
- libchromaprint-dev
- libfftw3-dev
- liblastfm5-dev
- libglew-dev
- libcrypto++-dev
- libsparsehash-dev
stage-packages:
- libstdc++6
- libgcc1
- libprotobuf10
- libpcre16-3
- libqt5core5a
- libqt5gui5
- libqt5widgets5
- libqt5concurrent5
- libqt5network5
- libqt5dbus5
- libqt5sql5
- libqt5x11extras5
- libqt5opengl5
- libqt5xml5
- libqt5sql5-sqlite
- libsqlite3-0
- libgpm2
- libasound2
- libasound2-plugins
- libpulse0
- libcdio17
- libgpod4
- libmtp9
- libplist3
- libusbmuxd4
- libtag1v5
- libchromaprint1
- zlib1g
- libx11-6
- libxcomposite1
- libxcursor1
- libxinerama1
- libxrandr2
- libdb5.3
- libglu1
- libslang2
- libatk1.0-0
- libatk-bridge2.0-0
- libatk1.0-data
- libatk-adaptor
- libprojectm2v5
- libcrypto++6
- liblastfm5-1
- libgstreamer1.0-0
- libgstreamer-plugins-base1.0-0
- gstreamer1.0-alsa
- gstreamer1.0-pulseaudio
- gstreamer1.0-plugins-base
- gstreamer1.0-plugins-good
- gstreamer1.0-plugins-bad
- gstreamer1.0-plugins-ugly
- gstreamer1.0-libav
- dbus-x11
- projectm-data
- qtwayland5
- libqtcore4
- glibc-source
- plasma-integration
- kde-style-breeze
- qt5-gtk-platformtheme
plugs:
gtk-3-themes:
interface: content
target: $SNAP/data-dir/themes
default-provider: gtk-common-themes
icon-themes:
interface: content
target: $SNAP/data-dir/icons
default-provider: gtk-common-themes
sound-themes:
interface: content
target: $SNAP/data-dir/sounds
default-provider: gtk-common-themes
apps:
clementine:
command: bin/desktop-launch $SNAP/usr/bin/clementine
command-chain:
- bin/homeishome-launch
desktop: usr/share/applications/org.clementine_player.Clementine.desktop
environment:
ALSA_CONFIG_PATH: /snap/$SNAPCRAFT_PROJECT_NAME/current/usr/share/alsa/alsa.conf
LD_LIBRARY_PATH: $LD_LIBRARY_PATH:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/pulseaudio
DISABLE_WAYLAND: 1
DE_FORK_SLAVES: 1
PATH: "$PATH:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libexec/kf5"
plugs:
- home
- udisks2
- network
- network-manager-observe
- network-bind
- desktop
- desktop-legacy
- x11
- wayland
- alsa
- pulseaudio
- removable-media
- optical-drive
- raw-usb
- media-hub
- screen-inhibit-control
- unity7
slots:
- mpris
clementine-tagreader:
command: usr/bin/clementine-tagreader
plugs:
- network
- network-manager-observe
- network-bind