-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathsnapcraft.yaml
61 lines (57 loc) · 1.98 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
name: alsa
version: stable
summary: ALSA part for snapcraft
description: |
ALSA part for snapcraft, which will compile ALSA and install a loader script
which redirects audio through pulseaudio without requiring the `alsa` plug to
be connected manually or by store assertion.
See the instructions for implementing into your Snap build at
https://snapcraft-alsa.readthedocs.io/.
### START parts
parts:
alsa-mixin:
plugin: dump
source: https://github.com/diddlesnaps/snapcraft-alsa.git
source-subdir: snapcraft-assets
build-packages:
- libasound2-dev
stage-packages:
- libasound2
- libasound2-plugins
- yad
stage:
# restrict to only audio-related files - you need to ensure
# that gtk3 is staged for yad to work correctly, to prompt
# users to connect the alsa plug or proceed with pulseaudio.
#
# This helps prevent symbol conflicts in situations where
# you're using a non-default library, such as those that the
# gnome-3-34 extension for core18 provides.
- etc/asound.conf
- snap/command-chain/alsa-launch
- usr/bin/yad*
- usr/lib/$SNAPCRAFT_ARCH_TRIPLET/alsa-lib
- usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libasound*
- usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libdnsfile*
- usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libFLAC*
- usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libjack*
- usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libpulse*
- usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libsamplerate*
- usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libspeex*
- usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libvorbis*
- usr/lib/$SNAPCRAFT_ARCH_TRIPLET/pulseaudio
### END parts
### START layout
layout:
/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/alsa-lib:
bind: $SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/alsa-lib
/usr/share/alsa:
bind: $SNAP/usr/share/alsa
### END layout
### START apps
apps:
my-app:
command-chain: ["snap/command-chain/alsa-launch"]
command: bin/my-app
plugs: [alsa, audio-playback, audio-record]
### END apps