This repository has been archived by the owner on Aug 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
snapcraft.yaml
115 lines (113 loc) · 2.6 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
name: vcmi
version: '0.99+git'
summary: VCMI engine
description: |
Open-source engine for Heroes of Might and Magic III
confinement: strict
grade: devel
apps:
vcmilauncher:
command: desktop-launch $SNAP/game/vcmilauncher
desktop: game/share/applications/vcmilauncher.desktop
plugs:
- unity7
- network
- opengl
- x11
# For client
- pulseaudio
- alsa
# For server
- network-bind
environment:
LC_ALL: C.UTF-8
vcmiclient:
command: desktop-launch $SNAP/game/vcmiclient
desktop: game/share/applications/vcmiclient.desktop
plugs:
- network
- opengl
- pulseaudio
- alsa
- x11
# For server
- network-bind
environment:
LC_ALL: C.UTF-8
vcmiserver:
command: desktop-launch $SNAP/game/vcmiserver
plugs:
- network
- network-bind
environment:
LC_ALL: C.UTF-8
parts:
desktop-qt5:
stage-packages:
- libxkbcommon0
- ttf-ubuntu-font-family
- dmz-cursor-theme
- light-themes
- shared-mime-info
- libqt5gui5
- libqt5core5a
- libqt5gui5-gles
- libqt5network5
- libqt5widgets5
- libgdk-pixbuf2.0-0
- libqt5svg5 # for loading icon themes which are svg
- locales-all
vcmi:
plugin: cmake
source: https://github.com/vcmi/vcmi.git
configflags:
- -DCMAKE_BUILD_TYPE=Release
- -DCMAKE_INSTALL_PREFIX=/game
- -DENABLE_MONOLITHIC_INSTALL=ON
after: [desktop-qt5]
build-packages:
- build-essential
- cmake
- cmake-data
- cmake-extras
- debhelper
- dbus
- libminizip-dev
- libsdl2-dev
- libsdl2-image-dev
- libsdl2-mixer-dev
- libsdl2-ttf-dev
- zlib1g-dev
- libavformat-dev
- libswscale-dev
- libboost-dev
- libboost-program-options-dev
- libboost-filesystem-dev
- libboost-system-dev
- libboost-locale-dev
- libboost-thread-dev
- libboost-test-dev
- qtbase5-dev
- pkg-config
- protobuf-compiler
stage-packages:
- libavcodec-ffmpeg56
- libavcodec-ffmpeg-extra56
- libavformat-ffmpeg56
- libavutil-ffmpeg54
- libboost-date-time1.58.0
- libboost-filesystem1.58.0
- libboost-locale1.58.0
- libboost-program-options1.58.0
- libboost-system1.58.0
- libboost-thread1.58.0
- libc6
- libgcc1
- libminizip1
- libsdl2-2.0-0
- libsdl2-image-2.0-0
- libsdl2-mixer-2.0-0
- libsdl2-ttf-2.0-0
- libstdc++6
- libswscale-ffmpeg3
- zlib1g