1 | name: c-evo
|
---|
2 | title: "C-evo: New Horizons"
|
---|
3 | version: '1.4.0'
|
---|
4 | summary: A turn-based empire building game inspired by Civilization II game.
|
---|
5 | description: |
|
---|
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 | * Support for user defined key mapping
|
---|
10 | * Many sample maps included
|
---|
11 | * Multiple localizations included
|
---|
12 | * High DPI support
|
---|
13 | * Many other small improvements
|
---|
14 | confinement: devmode
|
---|
15 | base: core22
|
---|
16 | grade: stable
|
---|
17 | icon: Graphics/c-evo_64x64.png
|
---|
18 | license: NLPL
|
---|
19 |
|
---|
20 | environment:
|
---|
21 | 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
|
---|
22 | PULSE_SERVER: unix:/run/user/1000/pulse/native
|
---|
23 |
|
---|
24 | layout:
|
---|
25 | /usr/lib/$SNAPCRAFT_ARCH_TRIPLET/sox:
|
---|
26 | bind: $SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/sox
|
---|
27 |
|
---|
28 | parts:
|
---|
29 | c-evo:
|
---|
30 | plugin: nil
|
---|
31 | source: .
|
---|
32 | source-type: local
|
---|
33 | after: [lazarus]
|
---|
34 | stage-packages:
|
---|
35 | - sox
|
---|
36 | - libsox-fmt-mp3
|
---|
37 | - libsox-fmt-pulse
|
---|
38 | - libpulse0
|
---|
39 | # Autodetected dependencies
|
---|
40 | - libatk1.0-0
|
---|
41 | - libcairo2
|
---|
42 | - libdatrie1
|
---|
43 | - libfontconfig1
|
---|
44 | - libfreetype6
|
---|
45 | - libgdk-pixbuf2.0-0
|
---|
46 | - libgraphite2-3
|
---|
47 | - libgtk2.0-0
|
---|
48 | - libharfbuzz0b
|
---|
49 | - libpango-1.0-0
|
---|
50 | - libpangocairo-1.0-0
|
---|
51 | - libpangoft2-1.0-0
|
---|
52 | - libpixman-1-0
|
---|
53 | - libpng16-16
|
---|
54 | - libthai0
|
---|
55 | - libx11-6
|
---|
56 | - libxau6
|
---|
57 | - libxcb-render0
|
---|
58 | - libxcb-shm0
|
---|
59 | - libxcb1
|
---|
60 | - libxcomposite1
|
---|
61 | - libxcursor1
|
---|
62 | - libxdamage1
|
---|
63 | - libxdmcp6
|
---|
64 | - libxext6
|
---|
65 | - libxfixes3
|
---|
66 | - libxi6
|
---|
67 | - libxinerama1
|
---|
68 | - libxrandr2
|
---|
69 | - libxrender1
|
---|
70 | override-build: |
|
---|
71 | snapcraftctl build
|
---|
72 | (cd AI/StdAI &&lazbuild --build-mode=Debug StdAI.lpi)
|
---|
73 | mv AI/StdAI/libstdai.so AI/StdAI/libstdai-amd64.so
|
---|
74 | lazbuild --build-mode=Debug Integrated.lpi
|
---|
75 | install -d -m 755 $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
|
---|
76 | install -s -m 755 c-evo $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
|
---|
77 | install -m 644 Language.txt $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
|
---|
78 | install -m 644 Language2.txt $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
|
---|
79 | install -m 644 Fonts.txt $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
|
---|
80 | install -d -m 755 $SNAPCRAFT_PART_INSTALL/usr/share/applications
|
---|
81 | install -m 755 Install/deb/c-evo.desktop $SNAPCRAFT_PART_INSTALL/usr/share/applications
|
---|
82 | install -d -m 755 $SNAPCRAFT_PART_INSTALL/usr/share/mime/packages
|
---|
83 | install -m 644 Install/deb/c-evo.xml $SNAPCRAFT_PART_INSTALL/usr/share/mime/packages
|
---|
84 | install -d -m 755 $SNAPCRAFT_PART_INSTALL/usr/share/pixmaps
|
---|
85 | install -m 644 Graphics/c-evo_64x64.png $SNAPCRAFT_PART_INSTALL/usr/share/pixmaps/c-evo.png
|
---|
86 | install -m 644 Graphics/c-evo_64x64.png $SNAPCRAFT_PART_INSTALL/usr/share/pixmaps/application-cevo.png
|
---|
87 | install -m 644 Graphics/c-evo_64x64.png $SNAPCRAFT_PART_INSTALL/usr/share/pixmaps/application-cevomap.png
|
---|
88 | install -d -m 755 $SNAPCRAFT_PART_INSTALL/usr/share/c-evo/AI/StdAI
|
---|
89 | install -m 644 AI/StdAI/libstdai-amd64.so $SNAPCRAFT_PART_INSTALL/usr/share/c-evo/AI/StdAI
|
---|
90 | install -m 644 AI/StdAI/StdAI.ai.txt $SNAPCRAFT_PART_INSTALL/usr/share/c-evo/AI/StdAI
|
---|
91 | install -m 644 AI/StdAI/StdAI.png $SNAPCRAFT_PART_INSTALL/usr/share/c-evo/AI/StdAI
|
---|
92 | cp -r Graphics $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
|
---|
93 | cp -r Help $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
|
---|
94 | cp -r Sounds $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
|
---|
95 | cp -r Tribes $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
|
---|
96 | cp -r Localization $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
|
---|
97 | cp -r Maps $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
|
---|
98 | cp -r Saved $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
|
---|
99 | cp -r "AI Template" $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
|
---|
100 | stage:
|
---|
101 | - etc
|
---|
102 | - usr
|
---|
103 | - usr/share/c-evo
|
---|
104 | - usr/share/applications/c-evo.desktop
|
---|
105 | - usr/share/mime/packages/c-evo.xml
|
---|
106 | lazarus:
|
---|
107 | plugin: nil
|
---|
108 | source: .
|
---|
109 | source-type: local
|
---|
110 | build-packages:
|
---|
111 | - wget
|
---|
112 | - libgtk2.0-dev
|
---|
113 | override-build: |
|
---|
114 | wget -nc https://downloads.sourceforge.net/project/lazarus/Lazarus%20Linux%20amd64%20DEB/Lazarus%203.2/lazarus-project_3.2.0-0_amd64.deb
|
---|
115 | wget -nc https://downloads.sourceforge.net/project/lazarus/Lazarus%20Linux%20amd64%20DEB/Lazarus%203.2/fpc-laz_3.2.2-210709_amd64.deb
|
---|
116 | wget -nc https://downloads.sourceforge.net/project/lazarus/Lazarus%20Linux%20amd64%20DEB/Lazarus%203.2/fpc-src_3.2.2-210709_amd64.deb
|
---|
117 | apt install ./lazarus-project_3.2.0-0_amd64.deb ./fpc-laz_3.2.2-210709_amd64.deb ./fpc-src_3.2.2-210709_amd64.deb
|
---|
118 | stage: [-*]
|
---|
119 | prime: [-*]
|
---|
120 |
|
---|
121 | apps:
|
---|
122 | c-evo:
|
---|
123 | command: usr/share/c-evo/c-evo
|
---|
124 | desktop: usr/share/applications/c-evo.desktop
|
---|
125 | plugs:
|
---|
126 | - home
|
---|
127 | - audio-playback
|
---|
128 | - desktop
|
---|
129 | - x11
|
---|