1 | name: c-evo
|
---|
2 | title: "C-evo: New Horizons"
|
---|
3 | version: '1.4.0'
|
---|
4 | summary: A turn-based empire building strategy game inspired by Civilization II game.
|
---|
5 | description: |
|
---|
6 | With a time scope of several thousand years, it covers aspects of exploration and expansion, industry and agriculture, warfare and diplomacy, science and administration. C-evo follows the spirit of popular turn-based strategy games from the mid 90s, but with more emphasis on powerful AI and careful design of the rules, resulting in a true challenge.
|
---|
7 | It is a turn-based strategy game inspired by Civilization 2 game where you can explore the world and build your own empire. New Horizons edition is a continuation of the last released original C-evo 1.2.0 version with many quality improvements:
|
---|
8 | * Full Linux platform support
|
---|
9 | * Zoomable map by mouse wheel with three tile sizes
|
---|
10 | * User defined key mapping
|
---|
11 | * Many sample maps included
|
---|
12 | * Multiple localizations included
|
---|
13 | * High DPI and scaling support
|
---|
14 | * Multi monitor support
|
---|
15 | * In-game background music
|
---|
16 | * And much more
|
---|
17 | confinement: strict
|
---|
18 | base: core22
|
---|
19 | grade: stable
|
---|
20 | icon: Install/common/c-evo_256x256.png
|
---|
21 | license: NLPL
|
---|
22 |
|
---|
23 | environment:
|
---|
24 | LD_LIBRARY_PATH: $SNAP_LIBRARY_PATH:$SNAP/lib:$SNAP/usr/lib:$SNAP/usr/lib/x86_64-linux-gnu:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/pulseaudio
|
---|
25 | PULSE_SERVER: unix:/run/user/1000/pulse/native
|
---|
26 | ALWAYS_USE_PULSEAUDIO: '1'
|
---|
27 |
|
---|
28 | layout:
|
---|
29 | /usr/lib/$SNAPCRAFT_ARCH_TRIPLET/sox:
|
---|
30 | bind: $SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/sox
|
---|
31 | /usr/lib/$SNAPCRAFT_ARCH_TRIPLET/alsa-lib:
|
---|
32 | bind: $SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/alsa-lib
|
---|
33 | /usr/share/alsa:
|
---|
34 | bind: $SNAP/usr/share/alsa
|
---|
35 | parts:
|
---|
36 | alsa-mixin:
|
---|
37 | plugin: dump
|
---|
38 | source: https://github.com/diddlesnaps/snapcraft-alsa.git
|
---|
39 | source-subdir: snapcraft-assets
|
---|
40 | build-packages:
|
---|
41 | - libasound2-dev
|
---|
42 | stage-packages:
|
---|
43 | - libasound2
|
---|
44 | - libasound2-plugins
|
---|
45 | - yad
|
---|
46 | stage:
|
---|
47 | # restrict to only audio-related files - you need to ensure
|
---|
48 | # that gtk3 is staged for yad to work correctly, to prompt
|
---|
49 | # users to connect the alsa plug or proceed with pulseaudio.
|
---|
50 | #
|
---|
51 | # This helps prevent symbol conflicts in situations where
|
---|
52 | # you're using a non-default library, such as those that the
|
---|
53 | # gnome-3-34 extension for core18 provides.
|
---|
54 | - etc/asound.conf
|
---|
55 | - snap/command-chain/alsa-launch
|
---|
56 | - usr/bin/yad*
|
---|
57 | - usr/lib/$SNAPCRAFT_ARCH_TRIPLET/alsa-lib
|
---|
58 | - usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libasound*
|
---|
59 | - usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libdnsfile*
|
---|
60 | - usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libFLAC*
|
---|
61 | - usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libjack*
|
---|
62 | - usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libpulse*
|
---|
63 | - usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libsamplerate*
|
---|
64 | - usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libspeex*
|
---|
65 | - usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libvorbis*
|
---|
66 | - usr/lib/$SNAPCRAFT_ARCH_TRIPLET/pulseaudio
|
---|
67 | c-evo:
|
---|
68 | plugin: nil
|
---|
69 | source: .
|
---|
70 | source-type: local
|
---|
71 | after: [lazarus, alsa-mixin]
|
---|
72 | stage-packages:
|
---|
73 | - sox
|
---|
74 | - libsox-fmt-mp3
|
---|
75 | - libsox-fmt-pulse
|
---|
76 | - libpulse0
|
---|
77 | - libsndfile1
|
---|
78 | - libportaudio2
|
---|
79 | - libxmp4
|
---|
80 | - libasound2
|
---|
81 | - libasound2-plugins
|
---|
82 | # Autodetected dependencies
|
---|
83 | - libatk1.0-0
|
---|
84 | - libcairo2
|
---|
85 | - libdatrie1
|
---|
86 | - libfontconfig1
|
---|
87 | - libfreetype6
|
---|
88 | - libgdk-pixbuf2.0-0
|
---|
89 | - libgraphite2-3
|
---|
90 | - libgtk2.0-0
|
---|
91 | - libharfbuzz0b
|
---|
92 | - libpango-1.0-0
|
---|
93 | - libpangocairo-1.0-0
|
---|
94 | - libpangoft2-1.0-0
|
---|
95 | - libpixman-1-0
|
---|
96 | - libpng16-16
|
---|
97 | - libthai0
|
---|
98 | - libx11-6
|
---|
99 | - libxau6
|
---|
100 | - libxcb-render0
|
---|
101 | - libxcb-shm0
|
---|
102 | - libxcb1
|
---|
103 | - libxcomposite1
|
---|
104 | - libxcursor1
|
---|
105 | - libxdamage1
|
---|
106 | - libxdmcp6
|
---|
107 | - libxext6
|
---|
108 | - libxfixes3
|
---|
109 | - libxi6
|
---|
110 | - libxinerama1
|
---|
111 | - libxrandr2
|
---|
112 | - libxrender1
|
---|
113 | override-build: |
|
---|
114 | snapcraftctl build
|
---|
115 | lazbuild --build-mode=Release AI/StdAI/StdAI.lpi
|
---|
116 | mv AI/StdAI/libstdai.so AI/StdAI/libstdai-$SNAPCRAFT_TARGET_ARCH.so
|
---|
117 | lazbuild --build-mode=Release Integrated.lpi
|
---|
118 | install -Dm755 c-evo -t $SNAPCRAFT_PART_INSTALL/usr/bin
|
---|
119 | install -Dm644 Language.txt -t $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
|
---|
120 | install -Dm644 Language2.txt -t $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
|
---|
121 | install -Dm644 Fonts.txt -t $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
|
---|
122 | install -Dm644 Install/common/c-evo.desktop -t $SNAPCRAFT_PART_INSTALL/usr/share/applications
|
---|
123 | install -Dm644 Install/common/c-evo.xml -t $SNAPCRAFT_PART_INSTALL/usr/share/mime/packages
|
---|
124 | install -Dm644 Install/common/c-evo_256x256.png $SNAPCRAFT_PART_INSTALL/usr/share/pixmaps/c-evo.png
|
---|
125 | install -Dm644 Install/common/c-evo_256x256.png $SNAPCRAFT_PART_INSTALL/usr/share/pixmaps/application-cevo.png
|
---|
126 | install -Dm644 Install/common/c-evo_256x256.png $SNAPCRAFT_PART_INSTALL/usr/share/pixmaps/application-cevomap.png
|
---|
127 | install -Dm644 AI/StdAI/libstdai-$SNAPCRAFT_TARGET_ARCH.so -t $SNAPCRAFT_PART_INSTALL/usr/share/c-evo/AI/StdAI
|
---|
128 | install -Dm644 AI/StdAI/StdAI.ai.txt -t $SNAPCRAFT_PART_INSTALL/usr/share/c-evo/AI/StdAI
|
---|
129 | install -Dm644 AI/StdAI/StdAI.png -t $SNAPCRAFT_PART_INSTALL/usr/share/c-evo/AI/StdAI
|
---|
130 | cp -r Graphics $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
|
---|
131 | cp -r Help $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
|
---|
132 | cp -r Sounds $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
|
---|
133 | cp -r Music $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
|
---|
134 | cp -r Tribes $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
|
---|
135 | cp -r Localization $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
|
---|
136 | cp -r Maps $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
|
---|
137 | cp -r Saved $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
|
---|
138 | cp -r "AI Template" $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
|
---|
139 | stage:
|
---|
140 | - etc
|
---|
141 | - usr
|
---|
142 | - usr/share/c-evo
|
---|
143 | - usr/share/applications/c-evo.desktop
|
---|
144 | - usr/share/mime/packages/c-evo.xml
|
---|
145 | lazarus:
|
---|
146 | plugin: nil
|
---|
147 | source: .
|
---|
148 | source-type: local
|
---|
149 | build-packages:
|
---|
150 | - wget
|
---|
151 | - libgtk2.0-dev
|
---|
152 | override-build: |
|
---|
153 | wget -nc https://downloads.sourceforge.net/project/lazarus/Lazarus%20Linux%20amd64%20DEB/Lazarus%204.2/lazarus-project_4.2.0-0_amd64.deb
|
---|
154 | wget -nc https://downloads.sourceforge.net/project/lazarus/Lazarus%20Linux%20amd64%20DEB/Lazarus%204.2/fpc-laz_3.2.2-210709_amd64.deb
|
---|
155 | wget -nc https://downloads.sourceforge.net/project/lazarus/Lazarus%20Linux%20amd64%20DEB/Lazarus%204.2/fpc-src_3.2.2-210709_amd64.deb
|
---|
156 | apt install ./lazarus-project_4.2.0-0_amd64.deb ./fpc-laz_3.2.2-210709_amd64.deb ./fpc-src_3.2.2-210709_amd64.deb
|
---|
157 | stage: [-*]
|
---|
158 | prime: [-*]
|
---|
159 |
|
---|
160 | apps:
|
---|
161 | c-evo:
|
---|
162 | command-chain: ["snap/command-chain/alsa-launch"]
|
---|
163 | command: usr/bin/c-evo
|
---|
164 | desktop: usr/share/applications/c-evo.desktop
|
---|
165 | plugs:
|
---|
166 | - home
|
---|
167 | - audio-playback
|
---|
168 | - desktop
|
---|
169 | - x11
|
---|
170 | - alsa
|
---|