-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
snapcraft.yaml
40 lines (36 loc) · 1.02 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
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
### 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