source: trunk/Install/snap/snapcraft.yaml

Last change on this file was 388, checked in by chronos, 3 months ago
  • Fixed: Sound was not working in snap package.
File size: 3.5 KB
Line 
1name: c-evo
2title: "C-evo: New Horizons"
3version: '1.3.0'
4summary: A turn-based empire building game inspired by Civilization II game.
5description: |
6 This is a fork and Lazarus/FPC port of the original C-evo 1.2.0 game.
7 Now it is finally possible to play C-evo natively on Linux.
8 * Zoomable map by mouse wheel with three tile sizes
9 * Many sample maps included
10 * All available localizations include
11 * Many other small improvements
12confinement: strict
13base: core20
14grade: devel
15icon: Graphics/c-evo_64x64.png
16license: NLPL
17
18environment:
19 LD_LIBRARY_PATH: $SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/pulseaudio
20 PULSE_SERVER: unix:/run/user/1000/pulse/native
21
22layout:
23 /usr/lib/$SNAPCRAFT_ARCH_TRIPLET/sox:
24 bind: $SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/sox
25
26parts:
27 c-evo:
28 plugin: nil
29 source: .
30 source-type: local
31 build-packages:
32 - fpc
33 - lazarus
34 - lcl
35 - lcl-utils
36 stage-packages:
37 - sox
38 - libsox-fmt-mp3
39 - libsox-fmt-pulse
40 - libpulse0
41 # Autodetected dependencies
42 - libatk1.0-0
43 - libcairo2
44 - libdatrie1
45 - libfontconfig1
46 - libfreetype6
47 - libgdk-pixbuf2.0-0
48 - libgraphite2-3
49 - libgtk2.0-0
50 - libharfbuzz0b
51 - libpango-1.0-0
52 - libpangocairo-1.0-0
53 - libpangoft2-1.0-0
54 - libpixman-1-0
55 - libpng16-16
56 - libthai0
57 - libx11-6
58 - libxau6
59 - libxcb-render0
60 - libxcb-shm0
61 - libxcb1
62 - libxcomposite1
63 - libxcursor1
64 - libxdamage1
65 - libxdmcp6
66 - libxext6
67 - libxfixes3
68 - libxi6
69 - libxinerama1
70 - libxrandr2
71 - libxrender1
72 override-build: |
73 snapcraftctl build
74 (cd AI/StdAI &&lazbuild --build-mode=Release StdAI.lpi)
75 mv AI/StdAI/libstdai.so AI/StdAI/libstdai-amd64.so
76 lazbuild --build-mode=Release Integrated.lpi
77 ROOT=/root/parts/c-evo/install
78 install -d -m 755 $ROOT/usr/share/c-evo
79 install -s -m 755 c-evo $ROOT/usr/share/c-evo
80 install -m 644 Language.txt $ROOT/usr/share/c-evo
81 install -m 644 Language2.txt $ROOT/usr/share/c-evo
82 install -m 644 Fonts.txt $ROOT/usr/share/c-evo
83 install -d -m 755 $ROOT/usr/share/applications
84 install -m 755 Install/deb/c-evo.desktop $ROOT/usr/share/applications
85 install -d -m 755 $ROOT/usr/share/mime/packages
86 install -m 755 Install/deb/c-evo.xml $ROOT/usr/share/mime/packages
87 install -d -m 755 $ROOT/usr/share/pixmaps
88 install -m 644 Graphics/c-evo_64x64.png $ROOT/usr/share/pixmaps/c-evo.png
89 install -m 644 Graphics/c-evo_64x64.png $ROOT/usr/share/pixmaps/application-cevo.png
90 install -m 644 Graphics/c-evo_64x64.png $ROOT/usr/share/pixmaps/application-cevomap.png
91 install -d -m 755 $ROOT/usr/share/c-evo/AI/StdAI
92 install -m 644 AI/StdAI/libstdai-amd64.so $ROOT/usr/share/c-evo/AI/StdAI
93 install -m 644 AI/StdAI/StdAI.ai.txt $ROOT/usr/share/c-evo/AI/StdAI
94 install -m 644 AI/StdAI/StdAI.png $ROOT/usr/share/c-evo/AI/StdAI
95 cp -r Graphics $ROOT/usr/share/c-evo
96 cp -r Help $ROOT/usr/share/c-evo
97 cp -r Sounds $ROOT/usr/share/c-evo
98 cp -r Tribes $ROOT/usr/share/c-evo
99 cp -r Localization $ROOT/usr/share/c-evo
100 cp -r Maps $ROOT/usr/share/c-evo
101 cp -r Saved $ROOT/usr/share/c-evo
102 cp -r "AI Template" $ROOT/usr/share/c-evo
103 stage:
104 - etc
105 - usr
106 - usr/share/c-evo
107 - usr/share/applications/c-evo.desktop
108 - usr/share/mime/packages/c-evo.xml
109
110apps:
111 c-evo:
112 command: usr/share/c-evo/c-evo
113 desktop: usr/share/applications/c-evo.desktop
114 plugs:
115 - home
116 - audio-playback
117 - desktop
118 - x11
Note: See TracBrowser for help on using the repository browser.