forked from flathub/org.openttd.OpenTTD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcom.github.JGRennison.OpenTTD-jgrpp.yaml
116 lines (110 loc) · 4.23 KB
/
com.github.JGRennison.OpenTTD-jgrpp.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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
app-id: com.github.JGRennison.OpenTTD-jgrpp
runtime: org.freedesktop.Platform
runtime-version: '23.08'
sdk: org.freedesktop.Sdk
command: openttd
rename-icon: openttd
rename-desktop-file: openttd.desktop
finish-args:
- --device=dri
- --filesystem=home
- --share=ipc
- --share=network
- --socket=pulseaudio
- --socket=wayland
- --socket=fallback-x11
modules:
- shared-modules/linux-audio/fluidsynth2.json
- name: opl3-soundfont
buildsystem: simple
build-commands:
- install -D -m 644 -t $FLATPAK_DEST/share/soundfonts OPL-3_FM_128M.sf2
- ln -s $FLATPAK_DEST/share/soundfonts/{OPL-3_FM_128M,default}.sf2
sources:
- type: file
url: https://github.com/Mindwerks/opl3-soundfont/releases/download/1.0/OPL-3_FM_128M.sf2
sha256: 39bff96eee3dcfbce9665e3968701b894ca2136c7d0bd580281b2bbf59e80392
- name: lzo
config-opts:
- --enable-shared
- --disable-static
cleanup:
- /include
- /lib/*.la
- /lib/pkgconfig
- /share
sources:
- type: archive
url: https://www.oberhumer.com/opensource/lzo/download/lzo-2.10.tar.gz
sha256: c0f892943208266f9b6543b3ae308fab6284c5c90e627931446fb49b4221a072
x-checker-data:
type: anitya
project-id: 1868
stable-only: true
url-template: https://www.oberhumer.com/opensource/lzo/download/lzo-$version.tar.gz
- name: openttd-jgrpp
config-opts:
- -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo
- -DCMAKE_INSTALL_BINDIR:STRING=bin
buildsystem: cmake-ninja
build-commands:
- install -Dm755 /usr/lib/$(gcc -print-multiarch)/libbfd-*.so -t ${FLATPAK_DEST}/lib
- install -Dm755 /usr/lib/$(gcc -print-multiarch)/libsframe.so.* -t ${FLATPAK_DEST}/lib
builddir: true
post-install:
- install -D -m 644 -t $FLATPAK_DEST/share/icons/hicolor/scalable/apps ../media/openttd.svg
- install -D -m 644 -t $FLATPAK_DEST/share/metainfo ../com.github.JGRennison.OpenTTD-jgrpp.metainfo.xml
sources:
- type: archive
url: https://github.com/JGRennison/OpenTTD-patches/archive/refs/tags/jgrpp-0.59.1.tar.gz
sha256: ed7ae7ebd157bce1656a5779f0d4a0bc5171cd1e71d751c8b01f0dd18dc3e24a
x-checker-data:
type: anitya
project-id: 8640
stable-only: true
url-template: https://github.com/JGRennison/OpenTTD-patches/archive/refs/tags/jgrpp-$version.tar.gz
is-main-source: true
- type: file
path: com.github.JGRennison.OpenTTD-jgrpp.metainfo.xml
- name: openttd-opengfx
buildsystem: simple
build-commands:
- tar -x -f opengfx-*.tar && rm opengfx-*.tar
- mv opengfx-* $FLATPAK_DEST/share/games/openttd/baseset/opengfx
sources:
- type: archive
url: https://cdn.openttd.org/opengfx-releases/7.1/opengfx-7.1-all.zip
sha256: 928fcf34efd0719a3560cbab6821d71ce686b6315e8825360fba87a7a94d7846
x-checker-data:
type: anitya
project-id: 9200
stable-only: true
url-template: https://cdn.openttd.org/opengfx-releases/$version/opengfx-$version-all.zip
- name: openttd-openmsx
buildsystem: simple
build-commands:
- tar -x -f openmsx-*.tar && rm openmsx-*.tar
- mv openmsx-* $FLATPAK_DEST/share/games/openttd/baseset/openmsx
sources:
- type: archive
url: https://cdn.openttd.org/openmsx-releases/0.4.2/openmsx-0.4.2-all.zip
sha256: 5a4277a2e62d87f2952ea5020dc20fb2f6ffafdccf9913fbf35ad45ee30ec762
x-checker-data:
type: anitya
project-id: 88822
stable-only: true
url-template: https://cdn.openttd.org/openmsx-releases/$version/openmsx-$version-all.zip
- name: openttd-opensfx
buildsystem: simple
build-commands:
- tar -x -f opensfx-*.tar && rm opensfx-*.tar
- mv opensfx-* $FLATPAK_DEST/share/games/openttd/baseset/opensfx
sources:
- type: archive
url: https://cdn.openttd.org/opensfx-releases/1.0.3/opensfx-1.0.3-all.zip
sha256: e0a218b7dd9438e701503b0f84c25a97c1c11b7c2f025323fb19d6db16ef3759
x-checker-data:
type: anitya
project-id: 88821
stable-only: true
url-template: https://cdn.openttd.org/opensfx-releases/$version/opensfx-$version-all.zip