This repository has been archived by the owner on Jul 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
net.wz2100.wz2100.yaml
93 lines (87 loc) · 3.01 KB
/
net.wz2100.wz2100.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
app-id: net.wz2100.wz2100
runtime: org.kde.Platform
runtime-version: '6.4'
sdk: org.kde.Sdk
command: warzone2100
separate-locales: false
finish-args:
- --socket=wayland
- --share=ipc
- --socket=x11
- --device=dri
- --persist=.warzone2100-3.4
- --socket=pulseaudio
- --share=network
cleanup:
- /include
- /lib/cmake
- /lib/pkgconfig
- /share/gtk-doc
- /share/man
- /share/pkgconfig
- '*.a'
- '*.la'
modules:
- shared-modules/glu/glu-9.json
- shared-modules/glew/glew.json
- name: ruby
sources:
- type: archive
url: https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.0.tar.gz
sha256: daaa78e1360b2783f98deeceb677ad900f3a36c0ffa6e2b6b19090be77abc272
- name: asciidoctor
buildsystem: simple
build-commands:
- gem install --local asciidoctor-2.0.18.gem
sources:
- type: file
url: https://rubygems.org/downloads/asciidoctor-2.0.18.gem
sha256: bbd1e1d16deed8db94bf9624b9f4474fac32d9ca7225d377f076c08d9adde387
- name: physfs
buildsystem: cmake-ninja
builddir: true
config-opts:
- -DCMAKE_INSTALL_PREFIX=/app
- -DCMAKE_BUILD_TYPE=Release
- -DPHYSFS_BUILD_TEST=OFF
sources:
- type: archive
url: 'http://icculus.org/physfs/downloads/physfs-3.0.2.tar.bz2'
sha1: 6a15c458898d0570101d8f173201cde9ced78df7
- name: fribidi
config-opts:
- --disable-docs
sources:
- type: git
url: https://github.com/fribidi/fribidi
tag: v1.0.12
commit: 6428d8469e536bcbb6e12c7b79ba6659371c435a
- type: patch
path: disable-docs.patch
- name: libsodium
sources:
- type: archive
url: https://github.com/jedisct1/libsodium/releases/download/1.0.18-RELEASE/libsodium-1.0.18.tar.gz
sha256: 6f504490b342a4f8a4c4a02fc9b866cbef8622d5df4e5452b46be121e46636c1
- name: wz2100
buildsystem: "cmake"
builddir: true
config-opts:
- -DWZ_DISTRIBUTOR=Flathub
sources:
- type: archive
url: https://github.com/Warzone2100/warzone2100/releases/download/4.3.5/warzone2100_src.tar.xz
sha256: 01d608f6f9638e14d7c857df40ad339c1bfc207a05daafe7157ad8652a3405c3
- type: file
url: https://sourceforge.net/projects/warzone2100/files/warzone2100/Videos/high-quality-en/sequences.wz
sha256: 90ff552ca4a70e2537e027e22c5098ea4ed1bc11bb7fc94138c6c941a73d29fa
- type: file
path: net.wz2100.wz2100.appdata.xml
post-install:
- mkdir -p /app/share/appdata
- mkdir -p /app/share/icons/hicolor/128x128/apps
- install -Dm644 ../sequences.wz /app/share/warzone2100/sequences.wz
- mv /app/share/applications/net.wz2100.warzone2100.desktop /app/share/applications/net.wz2100.wz2100.desktop
- mv /app/share/icons/net.wz2100.warzone2100.png /app/share/icons/hicolor/128x128/apps/net.wz2100.wz2100.png
- install -Dm644 ../net.wz2100.wz2100.appdata.xml /app/share/appdata
- desktop-file-edit --set-key=Icon --set-value='net.wz2100.wz2100' /app/share/applications/net.wz2100.wz2100.desktop