-
Notifications
You must be signed in to change notification settings - Fork 130
/
snapcraft.yaml
56 lines (52 loc) · 1.49 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
name: nicotine-plus
adopt-info: nicotine-plus
license: GPL-3.0-or-later
base: core22
confinement: strict
compression: lzo
grade: stable
apps:
nicotine-plus:
environment:
SNAPCRAFT_PRELOAD_REDIRECT_ONLY_SHM: 1
command: bin/snapcraft-preload python3 -m pynicotine
common-id: org.nicotine_plus.Nicotine
desktop: share/applications/org.nicotine_plus.Nicotine.desktop
extensions: [gnome]
plugs:
- desktop-legacy
- home
- network
- network-bind
- removable-media
- unity7
parts:
snapcraft-preload:
source: https://github.com/sergiusens/snapcraft-preload.git
plugin: cmake
cmake-parameters:
- -DCMAKE_INSTALL_PREFIX=/
build-packages:
- on amd64:
- gcc-multilib
- g++-multilib
nicotine-plus:
plugin: python
source: .
python-packages: []
parse-info: [share/metainfo/org.nicotine_plus.Nicotine.appdata.xml]
override-pull: |
craftctl default
sed -E 's|Icon=.*|Icon=snap.$CRAFT_PROJECT_NAME.org.nicotine_plus.Nicotine|' -i data/org.nicotine_plus.Nicotine.desktop.in
override-build: |
craftctl default
mkdir -p $CRAFT_PART_INSTALL/meta/gui/
cp -r $CRAFT_PART_INSTALL/share/icons $CRAFT_PART_INSTALL/meta/gui/
for i in `find $CRAFT_PART_INSTALL/meta/gui/icons -name "*.svg"`; do
mv $i "`dirname $i`/snap.$CRAFT_PROJECT_NAME.`basename $i`"
done
slots:
nicotine-plus:
interface: dbus
bus: session
name: org.nicotine_plus.Nicotine