source: trunk/Install/snap/snapcraft.yaml

Last change on this file was 84, checked in by chronos, 3 years ago
  • Fixed: Use clear background color under score text instead of solid.
  • Fixed: Missing snap package x11 plug.
  • Fixed: Snap package was not able to use language files.
  • Modified: Build snap using lxd instead of multipass.
File size: 2.8 KB
Line 
1name: 2048x
2title: 2048x
3version: '1.3.0'
4summary: A classic 2048 block sliding puzzle game
5description: |
6 Features:
7 * Selectable board size (from 2x2 to 12x12).
8 * Last move undo.
9 * Keep game between application restarts.
10 * Localization support (English, Czech).
11 * High DPI support.
12 * Moves history recording.
13 * Dark and light themes.
14 * Tiles move, merge and creation animation.
15 * Selectable tile skins (linear, exponential, alpha, binary, Roman)
16confinement: strict
17base: core20
18grade: stable
19icon: "Images/Logo 64x64.png"
20license: NLPL
21
22plugs:
23 gnome-3-38-2004:
24 interface: content
25 target: $SNAP/gnome-platform
26 default-provider: gnome-3-38-2004
27 gtk-3-themes:
28 interface: content
29 target: $SNAP/data-dir/themes
30 default-provider: gtk-common-themes
31 icon-themes:
32 interface: content
33 target: $SNAP/data-dir/icons
34 default-provider: gtk-common-themes
35 sound-themes:
36 interface: content
37 target: $SNAP/data-dir/sounds
38 default-provider: gtk-common-themes
39
40parts:
41 2048x:
42 plugin: nil
43 source: .
44 source-type: local
45 build-packages:
46 - fpc
47 - lazarus
48 - lcl
49 - lcl-utils
50 override-build: |
51 snapcraftctl build
52 lazbuild --build-mode=Release Game2048.lpi
53 ROOT=/root/parts/2048x/install
54 install -d -m 755 $ROOT/usr/bin
55 install -s -m 755 Game2048 $ROOT/usr/bin/Game2048
56 install -d -m 755 $ROOT/usr/share/Game2048/languages
57 install -m 755 Languages/Game2048.po $ROOT/usr/share/Game2048/languages
58 install -m 755 Languages/Game2048.cs.po $ROOT/usr/share/Game2048/languages
59 install -d -m 755 $ROOT/usr/share/applications
60 install -m 755 Install/snap/local/2048.desktop $ROOT/usr/share/applications
61 install -d -m 755 $ROOT/usr/share/pixmaps
62 install -m 755 Images/2048.png $ROOT/usr/share/pixmaps
63 stage:
64 - etc
65 - usr
66 - usr/bin
67 - usr/share/Game2048
68 - usr/share/applications/2048.desktop
69 - usr/share/pixmaps
70 stage-packages:
71 - libatk1.0-0
72 - libcairo2
73 - libdatrie1
74 - libfontconfig1
75 - libfreetype6
76 - libfribidi0
77 - libgdk-pixbuf2.0-0
78 - libgraphite2-3
79 - libgtk2.0-0
80 - libharfbuzz0b
81 - libpango-1.0-0
82 - libpangocairo-1.0-0
83 - libpangoft2-1.0-0
84 - libpixman-1-0
85 - libpng16-16
86 - libthai0
87 - libx11-6
88 - libxau6
89 - libxcb-render0
90 - libxcb-shm0
91 - libxcb1
92 - libxcomposite1
93 - libxcursor1
94 - libxdamage1
95 - libxdmcp6
96 - libxext6
97 - libxfixes3
98 - libxi6
99 - libxinerama1
100 - libxrandr2
101 - libxrender1
102
103apps:
104 2048x:
105 command: usr/bin/Game2048
106 desktop: usr/share/applications/2048.desktop
107 plugs:
108 - desktop
109 - x11
110
111layout:
112 /usr/share/Game2048:
113 bind: $SNAP/usr/share/Game2048
Note: See TracBrowser for help on using the repository browser.