forked from ubuntu/iagno
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsnapcraft.yaml
49 lines (45 loc) · 1.44 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
name: iagno
adopt-info: iagno
# The appstream version has newline breaks which the snap store doesn't accept
# Store upload failed:
# __all__: summary: Multiple lines are not allowed.
summary: Dominate the board in a classic reversi game or play the reversed variant
grade: stable # must be 'stable' to release into candidate/stable channels
confinement: strict
base: core22
slots:
# for GtkApplication registration
iagno:
interface: dbus
bus: session
name: org.gnome.Reversi
layout:
/usr/share/iagno:
symlink: $SNAP/usr/share/iagno
apps:
iagno:
extensions: [ gnome ]
common-id: org.gnome.Reversi.desktop
command: usr/bin/iagno
desktop: usr/share/applications/org.gnome.Reversi.desktop
plugs:
- audio-playback
parts:
iagno:
# ext:updatesnap
source: https://gitlab.gnome.org/GNOME/iagno.git
source-type: git
source-tag: '3.38.1'
source-depth: 1
parse-info: [usr/share/metainfo/org.gnome.Reversi.appdata.xml]
plugin: meson
meson-parameters:
- --prefix=/usr
override-pull: |
craftctl default
patch -p1 < $CRAFT_PROJECT_DIR/patches/patch1.diff
override-build: |
sed -i.bak -e 's|=org.gnome.Reversi$|=${SNAP}/meta/gui/iagno.svg|g' $CRAFT_PART_SRC/data/org.gnome.Reversi.desktop.in
craftctl default
mkdir -p $CRAFT_PART_INSTALL/meta/gui/
cp $CRAFT_PART_SRC/data/icons/hicolor/scalable/org.gnome.Reversi.svg $CRAFT_PART_INSTALL/meta/gui/iagno.svg