-
-
Notifications
You must be signed in to change notification settings - Fork 532
/
Copy pathsnapcraft.yaml
46 lines (43 loc) · 1 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
name: spt-temp
base: core18
adopt-info: spotify-tui
summary: Spotify TUI
description: |
Spotify for the terminal written in Rust
grade: stable
confinement: strict
parts:
spotify-tui:
plugin: rust
source: .
build-packages:
- libssl-dev
- pkg-config
- libxcb1-dev
- libxcb-render0-dev
- libxcb-shape0-dev
- libxcb-xfixes0-dev
stage-packages:
- libxau6
- libxcb-render0
- libxcb-shape0
- libxcb-xfixes0
- libxcb1
- libxdmcp6
override-pull: |
snapcraftctl pull
last_committed_tag="$(git describe --tags --abbrev=0)"
echo $last_committed_tag
VERSION="$(git describe --first-parent --tags --always)"
echo "Setting version to $VERSION"
snapcraftctl set-version "${VERSION}"
apps:
spt-temp:
environment:
LD_LIBRARY_PATH: $SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/pulseaudio:$LD_LIBRARY_PATH
command: spt
plugs:
- desktop
- network
- network-bind
- pulseaudio