Ignore:
Timestamp:
Nov 30, 2023, 10:16:14 PM (12 months ago)
Author:
chronos
Message:
  • Modified: Updated high dpi branch from trunk.
  • Modified: Use generics.collections instead of fgl.
  • Modified: Compile with Delphi syntax.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/highdpi/Install/snap/snapcraft.yaml

    r405 r465  
    55description: |
    66  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. 
     7  Now it is finally possible to play C-evo natively on Linux.
    88  * Zoomable map by mouse wheel with three tile sizes
    99  * Many sample maps included
    10   * All available localizations include
     10  * Multiple localizations included
     11  * Support for user defined key mapping
    1112  * Many other small improvements
    12 confinement: strict
    13 base: core20
     13confinement: devmode
     14base: core22
    1415grade: stable
    1516icon: Graphics/c-evo_64x64.png
    1617license: NLPL
    1718
    18 environment:
    19   LD_LIBRARY_PATH: $SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/pulseaudio
     19environment: 
     20  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
    2021  PULSE_SERVER: unix:/run/user/1000/pulse/native
    2122
    2223layout:
    2324  /usr/lib/$SNAPCRAFT_ARCH_TRIPLET/sox:
    24     bind: $SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/sox   
     25    bind: $SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/sox
    2526 
    2627parts:
     
    2930    source: .
    3031    source-type: local
    31     build-packages:
    32     - fpc
    33     - lazarus
    34     - lcl
    35     - lcl-utils
    36     stage-packages:   
     32    after: [lazarus]
     33    stage-packages:
    3734    - sox
    3835    - libsox-fmt-mp3
     
    7269    override-build: |
    7370      snapcraftctl build
    74       (cd AI/StdAI &&lazbuild --build-mode=Release StdAI.lpi)
     71      (cd AI/StdAI &&lazbuild --build-mode=Debug StdAI.lpi)
    7572      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
     73      lazbuild --build-mode=Debug Integrated.lpi
     74      install -d -m 755 $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
     75      install -s -m 755 c-evo $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
     76      install -m 644 Language.txt $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
     77      install -m 644 Language2.txt $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
     78      install -m 644 Fonts.txt $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
     79      install -d -m 755 $SNAPCRAFT_PART_INSTALL/usr/share/applications
     80      install -m 755 Install/deb/c-evo.desktop $SNAPCRAFT_PART_INSTALL/usr/share/applications
     81      install -d -m 755 $SNAPCRAFT_PART_INSTALL/usr/share/mime/packages
     82      install -m 644 Install/deb/c-evo.xml $SNAPCRAFT_PART_INSTALL/usr/share/mime/packages
     83      install -d -m 755 $SNAPCRAFT_PART_INSTALL/usr/share/pixmaps
     84      install -m 644 Graphics/c-evo_64x64.png $SNAPCRAFT_PART_INSTALL/usr/share/pixmaps/c-evo.png
     85      install -m 644 Graphics/c-evo_64x64.png $SNAPCRAFT_PART_INSTALL/usr/share/pixmaps/application-cevo.png
     86      install -m 644 Graphics/c-evo_64x64.png $SNAPCRAFT_PART_INSTALL/usr/share/pixmaps/application-cevomap.png
     87      install -d -m 755 $SNAPCRAFT_PART_INSTALL/usr/share/c-evo/AI/StdAI
     88      install -m 644 AI/StdAI/libstdai-amd64.so $SNAPCRAFT_PART_INSTALL/usr/share/c-evo/AI/StdAI
     89      install -m 644 AI/StdAI/StdAI.ai.txt $SNAPCRAFT_PART_INSTALL/usr/share/c-evo/AI/StdAI
     90      install -m 644 AI/StdAI/StdAI.png $SNAPCRAFT_PART_INSTALL/usr/share/c-evo/AI/StdAI
     91      cp -r Graphics $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
     92      cp -r Help $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
     93      cp -r Sounds $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
     94      cp -r Tribes $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
     95      cp -r Localization $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
     96      cp -r Maps $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
     97      cp -r Saved $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
     98      cp -r "AI Template" $SNAPCRAFT_PART_INSTALL/usr/share/c-evo
    10399    stage:
    104100      - etc
     
    107103      - usr/share/applications/c-evo.desktop
    108104      - usr/share/mime/packages/c-evo.xml
    109 
     105  lazarus:
     106    plugin: nil
     107    source: .
     108    source-type: local
     109    build-packages:
     110    - wget
     111    - libgtk2.0-dev
     112    override-build: |
     113      wget -nc https://downloads.sourceforge.net/project/lazarus/Lazarus%20Linux%20amd64%20DEB/Lazarus%202.2.2/lazarus-project_2.2.2-0_amd64.deb
     114      wget -nc https://downloads.sourceforge.net/project/lazarus/Lazarus%20Linux%20amd64%20DEB/Lazarus%202.2.2/fpc-laz_3.2.2-210709_amd64.deb
     115      wget -nc https://downloads.sourceforge.net/project/lazarus/Lazarus%20Linux%20amd64%20DEB/Lazarus%202.2.2/fpc-src_3.2.2-210709_amd64.deb
     116      apt install ./lazarus-project_2.2.2-0_amd64.deb ./fpc-laz_3.2.2-210709_amd64.deb ./fpc-src_3.2.2-210709_amd64.deb
     117    stage: [-*]
     118    prime: [-*]
     119   
    110120apps:
    111121  c-evo:
    112122    command: usr/share/c-evo/c-evo
    113     desktop: usr/share/applications/c-evo.desktop   
     123    desktop: usr/share/applications/c-evo.desktop
    114124    plugs:
    115125      - home
Note: See TracChangeset for help on using the changeset viewer.