1 | app-id: net.zdechov.app.C-evo
|
---|
2 | runtime: org.freedesktop.Platform
|
---|
3 | runtime-version: '24.08'
|
---|
4 | sdk: org.freedesktop.Sdk
|
---|
5 | sdk-extensions:
|
---|
6 | - org.freedesktop.Sdk.Extension.freepascal
|
---|
7 | command: c-evo
|
---|
8 | finish-args:
|
---|
9 | - --socket=x11
|
---|
10 | - --socket=pulseaudio
|
---|
11 | - --share=ipc
|
---|
12 | - --device=dri
|
---|
13 | modules:
|
---|
14 | - shared-modules/gtk2/gtk2.json
|
---|
15 | - name: c-evo
|
---|
16 | sources:
|
---|
17 | - type: svn
|
---|
18 | url: https://svn.zdechov.net/c-evo/trunk
|
---|
19 | revision: 637
|
---|
20 | buildsystem: simple
|
---|
21 | build-options:
|
---|
22 | arch:
|
---|
23 | x86_64:
|
---|
24 | env:
|
---|
25 | STDAI_ARCH: amd64
|
---|
26 | aarch64:
|
---|
27 | env:
|
---|
28 | STDAI_ARCH: arm64
|
---|
29 | build-commands:
|
---|
30 | - |
|
---|
31 | . /usr/lib/sdk/freepascal/enable.sh
|
---|
32 | lazbuild --build-mode=Release AI/StdAI/StdAI.lpi
|
---|
33 | mv AI/StdAI/libstdai.so AI/StdAI/libstdai-$STDAI_ARCH.so
|
---|
34 | lazbuild --build-mode=Release Integrated.lpi
|
---|
35 | - install -Dm755 c-evo -t $FLATPAK_DEST/share/c-evo
|
---|
36 | - install -d $FLATPAK_DEST/bin
|
---|
37 | - ln -s $FLATPAK_DEST/share/c-evo/c-evo $FLATPAK_DEST/bin/c-evo
|
---|
38 | - install -Dm644 Language.txt -t $FLATPAK_DEST/share/c-evo
|
---|
39 | - install -Dm644 Language2.txt -t $FLATPAK_DEST/share/c-evo
|
---|
40 | - install -Dm644 Fonts.txt -t $FLATPAK_DEST/share/c-evo
|
---|
41 | - install -Dm644 Install/flatpak/${FLATPAK_ID}.desktop -t $FLATPAK_DEST/share/applications
|
---|
42 | - install -Dm644 Install/deb/c-evo.xml -t $FLATPAK_DEST/share/mime/packages
|
---|
43 | - install -Dm644 Graphics/c-evo_256x256.png $FLATPAK_DEST/share/icons/hicolor/256x256/apps/${FLATPAK_ID}.png
|
---|
44 | - install -Dm644 Graphics/c-evo_256x256.png -t $FLATPAK_DEST/share/pixmaps/application-cevo.png
|
---|
45 | - install -Dm644 Graphics/c-evo_256x256.png -t $FLATPAK_DEST/share/pixmaps/application-cevomap.png
|
---|
46 | - install -Dm644 AI/StdAI/libstdai-$STDAI_ARCH.so -t $FLATPAK_DEST/share/c-evo/AI/StdAI
|
---|
47 | - install -Dm644 AI/StdAI/StdAI.ai.txt -t $FLATPAK_DEST/share/c-evo/AI/StdAI
|
---|
48 | - install -Dm644 AI/StdAI/StdAI.png -t $FLATPAK_DEST/share/c-evo/AI/StdAI
|
---|
49 | - install -Dm644 Install/flatpak/${FLATPAK_ID}.appdata.xml $FLATPAK_DEST/share/metainfo/${FLATPAK_ID}.metainfo.xml
|
---|
50 | - cp -r Graphics $FLATPAK_DEST/share/c-evo
|
---|
51 | - cp -r Help $FLATPAK_DEST/share/c-evo
|
---|
52 | - cp -r Sounds $FLATPAK_DEST/share/c-evo
|
---|
53 | - cp -r Tribes $FLATPAK_DEST/share/c-evo
|
---|
54 | - cp -r Localization $FLATPAK_DEST/share/c-evo
|
---|
55 | - cp -r Maps $FLATPAK_DEST/share/c-evo
|
---|
56 | - cp -r Saved $FLATPAK_DEST/share/c-evo
|
---|
57 | - cp -r "AI Template" $FLATPAK_DEST/share/c-evo
|
---|
58 |
|
---|