source: trunk/Install/snap/snapcraft.yaml

Last change on this file was 637, checked in by chronos, 8 months ago
  • Added: AI upscaled C-evo icon to 1024x1024 resolution.
  • Modified: Updated packaging files.
File size: 5.2 KB
Line 
1name: c-evo
2title: "C-evo: New Horizons"
3version: '1.4.0'
4summary: A turn-based empire building strategy game inspired by Civilization II game.
5description: |
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 * And much more
16confinement: strict
17base: core22
18grade: stable
19icon: Graphics/c-evo_256x256.png
20license: NLPL
21
22environment:
23 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
24 PULSE_SERVER: unix:/run/user/1000/pulse/native
25
26layout:
27 /usr/lib/$SNAPCRAFT_ARCH_TRIPLET/sox:
28 bind: $SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/sox
29
30parts:
31 c-evo:
32 plugin: nil
33 source: .
34 source-type: local
35 after: [lazarus]
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 lazbuild --build-mode=Release AI/StdAI/StdAI.lpi
75 mv AI/StdAI/libstdai.so AI/StdAI/libstdai-$SNAPCRAFT_TARGET_ARCH.so
76 lazbuild --build-mode=Release Integrated.lpi
77 install -d -m 755 $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
78 install -s -m 755 c-evo $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
79 install -m 644 Language.txt $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
80 install -m 644 Language2.txt $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
81 install -m 644 Fonts.txt $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
82 install -d -m 755 $SNAPCRAFT_PART_INSTALL/usr/share/applications
83 install -m 755 Install/deb/c-evo.desktop $SNAPCRAFT_PART_INSTALL/usr/share/applications
84 install -d -m 755 $SNAPCRAFT_PART_INSTALL/usr/share/mime/packages
85 install -m 644 Install/deb/c-evo.xml $SNAPCRAFT_PART_INSTALL/usr/share/mime/packages
86 install -d -m 755 $SNAPCRAFT_PART_INSTALL/usr/share/pixmaps
87 install -m 644 Graphics/c-evo_256x256.png $SNAPCRAFT_PART_INSTALL/usr/share/pixmaps/c-evo.png
88 install -m 644 Graphics/c-evo_256x256.png $SNAPCRAFT_PART_INSTALL/usr/share/pixmaps/application-cevo.png
89 install -m 644 Graphics/c-evo_256x256.png $SNAPCRAFT_PART_INSTALL/usr/share/pixmaps/application-cevomap.png
90 install -d -m 755 $SNAPCRAFT_PART_INSTALL/usr/share/c-evo/AI/StdAI
91 install -m 644 AI/StdAI/libstdai-$SNAPCRAFT_TARGET_ARCH.so $SNAPCRAFT_PART_INSTALL/usr/share/c-evo/AI/StdAI
92 install -m 644 AI/StdAI/StdAI.ai.txt $SNAPCRAFT_PART_INSTALL/usr/share/c-evo/AI/StdAI
93 install -m 644 AI/StdAI/StdAI.png $SNAPCRAFT_PART_INSTALL/usr/share/c-evo/AI/StdAI
94 cp -r Graphics $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
95 cp -r Help $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
96 cp -r Sounds $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
97 cp -r Tribes $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
98 cp -r Localization $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
99 cp -r Maps $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
100 cp -r Saved $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
101 cp -r "AI Template" $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
102 stage:
103 - etc
104 - usr
105 - usr/share/c-evo
106 - usr/share/applications/c-evo.desktop
107 - usr/share/mime/packages/c-evo.xml
108 lazarus:
109 plugin: nil
110 source: .
111 source-type: local
112 build-packages:
113 - wget
114 - libgtk2.0-dev
115 override-build: |
116 wget -nc https://downloads.sourceforge.net/project/lazarus/Lazarus%20Linux%20amd64%20DEB/Lazarus%203.6/lazarus-project_3.6.0-0_amd64.deb
117 wget -nc https://downloads.sourceforge.net/project/lazarus/Lazarus%20Linux%20amd64%20DEB/Lazarus%203.6/fpc-laz_3.2.2-210709_amd64.deb
118 wget -nc https://downloads.sourceforge.net/project/lazarus/Lazarus%20Linux%20amd64%20DEB/Lazarus%203.6/fpc-src_3.2.2-210709_amd64.deb
119 apt install ./lazarus-project_3.6.0-0_amd64.deb ./fpc-laz_3.2.2-210709_amd64.deb ./fpc-src_3.2.2-210709_amd64.deb
120 stage: [-*]
121 prime: [-*]
122
123apps:
124 c-evo:
125 command: usr/share/c-evo/c-evo
126 desktop: usr/share/applications/c-evo.desktop
127 plugs:
128 - home
129 - audio-playback
130 - desktop
131 - x11
Note: See TracBrowser for help on using the repository browser.