-
Notifications
You must be signed in to change notification settings - Fork 1
/
snapcraft.yaml
312 lines (300 loc) · 7.81 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
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
name: tizonia
version: 0.22.0
summary: Tizonia command-line cloud music player.
description: |
Command-line cloud music player for Linux with support for Spotify,
Google Play Music, YouTube, SoundCloud, TuneIn, iHeartRadio, Plex
and Chromecast.
grade: stable
confinement: strict
base: core18
architectures:
- build-on: amd64
run-on: amd64
- build-on: i386
run-on: i386
- build-on: armhf
run-on: armhf
slots:
tizrmd-slot: # Tizonia's OpenMAX IL resource management daemon
interface: dbus
bus: session
name: com.aratelia.tiz.tizrmd
tizcastd-slot: # Tizonia's Chromecast access daemon
interface: dbus
bus: session
name: com.aratelia.tiz.tizcastd
plugs:
tizrmd-plug: # Tizonia's OpenMAX IL resource management daemon
interface: dbus
bus: session
name: com.aratelia.tiz.tizrmd
tizcastd-plug: # Tizonia's Chromecast access daemon
interface: dbus
bus: session
name: com.aratelia.tiz.tizcastd
apps:
tizrmd:
command: usr/bin/tizrmd
slots:
- tizrmd-slot
tizcastd:
command: usr/bin/tizcastd
slots:
- tizcastd-slot
tizonia:
desktop: usr/share/applications/tizonia.desktop
command: bin/snapcraft-preload $SNAP/bin/tizonia-snap-wrapper.sh
completer: usr/share/bash-completion/completions/tizonia
plugs:
- home
- network
- network-bind
- audio-playback
- process-control
- alsa
- removable-media
- mount-observe
- network-control
- x11
- tizrmd-plug
- tizcastd-plug
slots:
- mpris
parts:
# Semaphore-support (Python multitasking)
snapcraft-preload:
source: https://github.com/diddledan/snapcraft-preload.git
source-branch: semaphore-support
plugin: cmake
build-packages:
- on amd64:
- gcc-multilib
- g++-multilib
stage-packages:
- on amd64 to amd64:
- lib32stdc++6
pypideps:
plugin: python
python-version: python3
build-packages:
- python3-all-dev
- libxml2-dev
- libxslt1-dev
python-packages:
- gmusicapi
- soundcloud
- youtube-dl
- pafy
- pycountry
- titlecase
- pychromecast
- plexapi
- fuzzywuzzy
- eventlet
- python-Levenshtein
- joblib
filesets:
no-need-stuff:
- -include/
- -var/
- -share/
- -usr/share
- -snap/
stage:
- $no-need-stuff
prime:
- $no-need-stuff
spotipy:
plugin: python
python-version: python3
source-type: git
source: https://github.com/plamere/spotipy
filesets:
no-need-stuff:
- -bin/chardetect
- -include/
- -var/
- -share/
- -usr/share
- -snap/
stage:
- $no-need-stuff
prime:
- $no-need-stuff
after:
- pypideps
tizonia:
plugin: meson
source: https://github.com/tizonia/tizonia-openmax-il.git
source-commit: fe359e619e1baa06eb7f7cea8c3bf56cd66f4de2
override-build: |
env
# NOTE: The check for Mopidy's apt archive presence in sources.list is disabled,
# since it fails when building with 'snapcraft cleanbuild'.
# Re-enable when building without cleanbuild to avoid adding the apt archive
# multiple times to sources.list.
#
# Add Mopidy's archive to APT's sources.list
# grep -q "apt.mopidy.com" /etc/apt/sources.list
# if [ "$?" -eq 1 ]; then
curl 'http://apt.mopidy.com/mopidy.gpg' | apt-key add -
curl https://apt.mopidy.com/stretch.list -o /etc/apt/sources.list.d/mopidy.list
# fi
apt-get update && apt-get -y install libspotify-dev
pip3 uninstall --yes meson && pip3 install meson==0.53.0
meson . build --buildtype=release --prefix=$SNAPCRAFT_PART_INSTALL/usr --sysconfdir=$SNAPCRAFT_PART_INSTALL/etc --localstatedir=$SNAPCRAFT_PART_INSTALL/var --sharedstatedir=$SNAPCRAFT_PART_INSTALL/var/lib
ninja -j1 -C build
ninja -C build install
perl -i -p -e 's|^component-paths.*|component-paths = \$TIZONIA_PLUGINS_DIR|' $SNAPCRAFT_PART_INSTALL/etc/xdg/tizonia/tizonia.conf
perl -i -p -e 's|^rmdb.*|rmdb = \$TIZONIA_PLUGINS_DIR/usr/share/tizrmd/tizrm.db|' $SNAPCRAFT_PART_INSTALL/etc/xdg/tizonia/tizonia.conf
perl -i -p -e 's|^Icon=tizonia|Icon=/usr/share/icons/hicolor/256x256/apps/tizonia\.png|' $SNAPCRAFT_PART_INSTALL/usr/share/applications/tizonia.desktop
perl -i -p -e 's|^Exec.*|Exec=/usr/bin/tizcastd|' $SNAPCRAFT_PART_INSTALL/usr/share/dbus-1/services/com.aratelia.tiz.cast.service
perl -i -p -e 's|^Exec.*|Exec=/usr/bin/tizrmd|' $SNAPCRAFT_PART_INSTALL/usr/share/dbus-1/services/com.aratelia.tiz.rm.service
build-packages:
- build-essential
- cmake
- libtool
- dpkg-dev
- libmad0-dev
- liblog4c-dev
- libasound2-dev
- libdbus-1-dev
- libsqlite3-dev
- libboost-system-dev
- libboost-python-dev
- libboost-filesystem-dev
- libboost-thread-dev
- libboost-program-options-dev
- uuid-dev
- libsdl1.2-dev
- libvpx-dev
- libmp3lame-dev
- libfaad-dev
- libtag1-dev
- libfishsound1-dev
- libmediainfo-dev
- libcurl4-gnutls-dev
- libpulse-dev
- libmpg123-dev
- libvorbis-dev
- libopus-dev
- libopusfile-dev
- libogg-dev
- libflac-dev
- liboggz2-dev
- libsndfile1-dev
- libffi-dev
- libssl-dev
- libexpat1-dev
- python3-dev
- python3-all-dev
- python3-setuptools
- python3-pip
- check
- sqlite3
- dbus-x11
- curl
- execstack
stage-packages:
- libmad0
- liblog4c3
- libasound2
- libpulse0
- libdbus-1-3
- libsqlite3-0
- libboost-system1.65.1
- libboost-python1.65.1
- libboost-filesystem1.65.1
- libboost-thread1.65.1
- libboost-program-options1.65.1
- uuid-runtime
- libsdl1.2debian
- libvpx5
- libmp3lame0
- libfaad2
- libtag1v5
- libfishsound1
- libmediainfo0v5
- libmpg123-0
- libvorbis0a
- libopus0
- libopusfile0
- libogg0
- libflac8
- liboggz2
- libsndfile1
- libcurl4
- libffi6
- libpython3.6
- libslang2
- libgl1
- libglu1-mesa
- libglvnd0
- libglx0
- sqlite3
- dbus-x11
- freeglut3
- libasn1-8-heimdal
- libasyncns0
- libcaca0
- libgssapi3-heimdal
- libhcrypto4-heimdal
- libheimbase1-heimdal
- libheimntlm0-heimdal
- libhx509-5-heimdal
- libicu60
- libkrb5-26-heimdal
- libldap-2.4-2
- libmms0
- libpsl5
- libroken18-heimdal
- librtmp1
- libsasl2-2
- libspeex1
- libtag1v5-vanilla
- libtinyxml2-6
- libvorbisenc2
- libwind0-heimdal
- libx11-6
- libxau6
- libxcb1
- libxdmcp6
- libxext6
- libzen0v5
after:
- spotipy
organize:
usr/lib/python3.6/site-packages: lib/python3.6/site-packages
filesets:
no-need-stuff:
- -include/
- -var/
- -snap/
- "-usr/lib/*/cmake/*"
- "-usr/include/*"
- "-usr/share/ECM/*"
- "-usr/share/doc/*"
- "-usr/share/man/*"
- "-usr/bin/X11"
- "-usr/lib/gcc/x86_64-linux-gnu/6.0.0"
- "-usr/lib/aspell/*"
stage:
- $no-need-stuff
prime:
- $no-need-stuff
env:
plugin: nil
override-build: |
find / ! -readable -prune -o -type f -name "libspotify.so.*" -exec ls {} \; -exec execstack --clear-execstack {} \; || true
stage-packages:
- libspotify12
after:
- tizonia
wrapper:
plugin: dump
source: wrapper
organize:
tizonia-snap-wrapper.sh: bin/tizonia-snap-wrapper.sh
after:
- env