This repository has been archived by the owner on Jul 19, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathsnapcraft.yaml
131 lines (124 loc) · 3.14 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
name: glest # you probably want to 'snapcraft register <name>'
# the base snap is the execution environment for this snap
version: '2.0' # just for humans, typically '1.2+git' or '1.3.2'
base: core18
summary: Glest # 79 char long summary
description: |
Glest is a free real-time strategy game.
grade: stable # must be 'stable' to release into candidate/stable channels
confinement: strict # use 'strict' once you have the right plugs and slots
apps:
Glest:
desktop: usr/share/applications/io.glest.Glest.desktop
command: glest
environment:
LD_LIBRARY_PATH: $LD_LIBRARY_PATH:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/pulseaudio
plugs:
- network
- network-bind
- home
- opengl
- pulseaudio
- x11
Glest-mapeditor:
command: glest_editor
environment:
LD_LIBRARY_PATH: $LD_LIBRARY_PATH:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/pulseaudio
plugs:
- home
- opengl
- pulseaudio
- x11
Glest-g3dviewer:
command: glest_g3dviewer
environment:
LD_LIBRARY_PATH: $LD_LIBRARY_PATH:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/pulseaudio
plugs:
- home
- opengl
- pulseaudio
- x11
parts:
glest:
plugin: cmake
configflags:
- "-DCMAKE_INSTALL_PREFIX=/usr"
source-type: git
source: https://github.com/glest/glest-source.git
#source-type: local
#source: glest-source
build-packages:
- build-essential
- cmake
- libsdl2-dev
- libopenal-dev
- liblua5.3-dev
- libcurl4-dev
- libjpeg-dev
- libpng-dev
- libfreetype6-dev
- libwxgtk3.0-dev
- libcppunit-dev
- libfribidi-dev
- libftgl-dev
- libglew-dev
- libogg-dev
- libvorbis-dev
- libminiupnpc-dev
- libircclient-dev
- libvlc-dev
- libvlccore-dev
- libxml2-dev
- libx11-dev
- libgl1-mesa-dev
- libglu1-mesa-dev
- librtmp-dev
- libkrb5-dev
- libldap2-dev
- libidn11-dev
- libgnutls28-dev
- libnghttp2-dev
- libssh2-1-dev
- libpsl-dev
stage-packages:
- famfamfam-flag-png
- p7zip-full
- libcurl4
- libfontconfig1
- libfribidi0
- libftgl2
- libgcc1
- libgl1-mesa-glx
- libgl1
- libglew2.0
- libglu1-mesa
- libircclient1
- libjpeg8
- liblua5.3-0
- libminiupnpc10
- libopenal1
- libpng16-16
- libsdl2-2.0-0
- libstdc++6
- libvorbisfile3
- libwxbase3.0-0v5
- libwxgtk3.0-0v5
- libx11-6
- libpulse0
override-build: |
snapcraftctl build
for f in $SNAPCRAFT_PART_INSTALL/usr/bin/7z*
do
sed -i 's/\/usr/$SNAP\/usr/' $f
done
glest-data:
plugin: cmake
configflags:
- "-DCMAKE_INSTALL_PREFIX=/usr"
#source-type: local
#source: glest-data
source-type: git
source: https://github.com/glest/glest-data.git
override-build: |
snapcraftctl build
sed -i 's|Icon=glest|Icon=/usr/share/icons/hicolor/256x256/apps/glest\.png|' $SNAPCRAFT_PART_INSTALL/usr/share/applications/io.glest.Glest.desktop