snapcraft.yaml 2.2 KB
Newer Older
Ken VanDine's avatar
Ken VanDine committed
1
2
3
4
5
6
7
8
9
10
11
12
13
name: tali
version: git
summary: Roll dice and score points
description: |
  A variation on poker with dice and less money, this game is a family classic.
  Throw the dice three times in a row, holding back the ones you like, in order
  to make the best possible hand. You can also play a lesser-known variant with
  colored dice.

  Play between one and five opponents at three difficulty levels.     

grade: stable # must be 'stable' to release into candidate/stable channels
confinement: strict
Jeremy Bicha's avatar
Jeremy Bicha committed
14
base: core18
Ken VanDine's avatar
Ken VanDine committed
15
16

plugs:
Jeremy Bicha's avatar
Jeremy Bicha committed
17
  gnome-3-28-1804:
Ken VanDine's avatar
Ken VanDine committed
18
19
    interface: content
    target: $SNAP/gnome-platform
Jeremy Bicha's avatar
Jeremy Bicha committed
20
    default-provider: gnome-3-28-1804
Ken VanDine's avatar
Ken VanDine committed
21
22
23
24
25
26
27
28
29
30
31
32
33
34
  gtk-3-themes:
    interface: content
    target: $SNAP/data-dir/themes
    default-provider: gtk-common-themes
  icon-themes:
    interface: content
    target: $SNAP/data-dir/icons
    default-provider: gtk-common-themes

slots:
  # for GtkApplication registration
  tali:
    interface: dbus
    bus: session
35
    name: org.gnome.Tali
Ken VanDine's avatar
Ken VanDine committed
36
37
38
39
40
41
42
43
44
45

apps:
  tali:
    command: desktop-launch tali
    plugs:
      - desktop
      - desktop-legacy
      - gsettings
      - unity7
      - wayland
46
    desktop: usr/share/applications/org.gnome.Tali.desktop
Ken VanDine's avatar
Ken VanDine committed
47
48

parts:
Jeremy Bicha's avatar
Jeremy Bicha committed
49
50
51
52
53
54
55
56
57
58
59
60
  desktop-gnome-platform:
    source: https://github.com/ubuntu/snapcraft-desktop-helpers.git
    source-subdir: gtk
    plugin: make
    make-parameters: ["FLAVOR=gtk3"]
    build-packages:
      - build-essential
      - libgtk-3-dev
    override-build: |
      snapcraftctl build
      mkdir -pv $SNAPCRAFT_PART_INSTALL/gnome-platform

Ken VanDine's avatar
Ken VanDine committed
61
62
63
64
65
  tali:
    after: [desktop-gnome-platform]
    source: .
    source-type: git
    override-build: |
66
      sed -i.bak -e 's|=org.gnome.Tali$|=${SNAP}/meta/gui/org.gnome.Tali.png|g' data/org.gnome.Tali.desktop.in
Ken VanDine's avatar
Ken VanDine committed
67
68
      snapcraftctl build
      mkdir -p $SNAPCRAFT_PART_INSTALL/meta/gui/
69
70
71
72
      cp ../src/data/icons/256x256/org.gnome.Tali.png $SNAPCRAFT_PART_INSTALL/meta/gui/
      cp ../install/snap/tali/current/usr/share/applications/org.gnome.Tali.desktop $SNAPCRAFT_PART_INSTALL/meta/gui/
    plugin: meson
    meson-parameters: [--prefix=/snap/tali/current/usr]
Ken VanDine's avatar
Ken VanDine committed
73
74
75
    organize:
      snap/tali/current/usr: usr
    build-packages:
76
77
      - gettext
      - itstool
Ken VanDine's avatar
Ken VanDine committed
78
79
80
      - libglib2.0-dev
      - libgtk-3-dev
      - librsvg2-dev