-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsnapcraft.yaml
52 lines (47 loc) · 1.62 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
name: gnome-tetravex
adopt-info: gnome-tetravex
summary: Reorder tiles to fit a square
description: |
Each square piece has a number on each side. Position the pieces on the left
side of the board so that the same numbers are next to each other. If the
numbers don't match, you can't put the piece there. Move quickly: you're
being timed!
You can make the game easier or harder by changing the size of the board.
license: GPL-3.0+
grade: stable # must be 'stable' to release into candidate/stable channels
confinement: strict
base: core24
slots:
# for GtkApplication registration
gnome-tetravex:
interface: dbus
bus: session
name: org.gnome.Tetravex
apps:
gnome-tetravex:
command: usr/bin/gnome-tetravex
extensions: [ gnome ]
desktop: usr/share/applications/org.gnome.Tetravex.desktop
parts:
gnome-tetravex:
# ext:updatesnap
source: https://gitlab.gnome.org/GNOME/gnome-tetravex.git
source-type: git
source-tag: '3.38.2'
source-depth: 1
parse-info: [usr/share/metainfo/org.gnome.Tetravex.appdata.xml]
override-pull: |
craftctl default
for i in $CRAFT_PROJECT_DIR/patches/*.diff; do
patch -p1 < $i
done
override-build: |
sed -i.bak -e 's|Icon=org.gnome.Tetravex$|Icon=${SNAP}/meta/gui/org.gnome.Tetravex.svg|g' $SNAPCRAFT_PART_SRC/data/org.gnome.Tetravex.desktop.in
craftctl default
mkdir -p $SNAPCRAFT_PART_INSTALL/meta/gui/
cp $SNAPCRAFT_PART_SRC/data/icons/hicolor/scalable/org.gnome.Tetravex.svg $SNAPCRAFT_PART_INSTALL/meta/gui/
plugin: meson
meson-parameters:
- --prefix=/usr
prime:
- -usr/lib/*/libgtk*