-
Notifications
You must be signed in to change notification settings - Fork 4
/
snapcraft.yaml
46 lines (42 loc) · 1.26 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: gnome-robots
adopt-info: gnome-robots
grade: stable # must be 'stable' to release into candidate/stable channels
confinement: strict
base: core24
layout:
/usr/share/gnome-robots:
bind: $SNAP/usr/share/gnome-robots
slots:
# for GtkApplication registration
gnome-robots:
interface: dbus
bus: session
name: org.gnome.Robots
apps:
gnome-robots:
extensions: [gnome]
command: usr/bin/gnome-robots
plugs:
- audio-playback
desktop: usr/share/applications/org.gnome.Robots.desktop
common-id: org.gnome.Robots.desktop
parts:
gnome-robots:
# ext:updatesnap
source: https://gitlab.gnome.org/GNOME/gnome-robots.git
source-type: git
source-tag: '40.0'
source-depth: 1
override-build: |
sed -i.bak -e 's|=org.gnome.Robots$|=${SNAP}/meta/gui/org.gnome.Robots.svg|g' $CRAFT_PART_SRC/data/org.gnome.Robots.desktop.in
craftctl default
mkdir -p $CRAFT_PART_INSTALL/meta/gui/
cp ../src/data/icons/hicolor/scalable/org.gnome.Robots.svg $CRAFT_PART_INSTALL/meta/gui/
plugin: meson
meson-parameters:
- --prefix=/usr
parse-info: [usr/share/metainfo/org.gnome.Robots.appdata.xml]
build-packages:
- libgnome-games-support-1-dev
stage-packages:
- libgnome-games-support-1-3