-
Notifications
You must be signed in to change notification settings - Fork 3
/
io.github.ihhub.Fheroes2.yaml
91 lines (89 loc) · 2.95 KB
/
io.github.ihhub.Fheroes2.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
app-id: io.github.ihhub.Fheroes2
runtime: org.freedesktop.Platform
runtime-version: '24.08'
sdk: org.freedesktop.Sdk
finish-args:
- --device=all
# X11 + XShm access
- --share=ipc
- --socket=x11
# Pulseaudio access
- --socket=pulseaudio
# File Manager
- --talk-name=org.freedesktop.FileManager1.*
# Network for demo download
- --share=network
command: fheroes2.sh
rename-appdata-file: fheroes2.metainfo.xml
rename-desktop-file: fheroes2.desktop
rename-icon: fheroes2
copy-icon: true
modules:
- name: fheroes2
buildsystem: cmake-ninja
config-opts:
- -DSDL2MAIN_LIBRARY=
post-install:
- desktop-file-edit --set-key=Exec --set-value=fheroes2.sh ${FLATPAK_DEST}/share/applications/fheroes2.desktop
- install -Dm 744 fheroes2.sh -t /app/bin
- install -Dm 644 android/app/src/main/assets/timidity.cfg -t ${FLATPAK_DEST}/etc
- install -Dm 644 android/app/src/main/assets/instruments/* -t ${FLATPAK_DEST}/etc/instruments
sources:
- type: git
url: https://github.com/ihhub/fheroes2
tag: 1.1.5
commit: 22556eb28eb0fb4d48b28cf9dfa816b9353a4810
x-checker-data:
type: git
tag-pattern: ^([\d.]+)$
- type: file
path: fheroes2.sh
dest-filename: fheroes2.sh
# innoextract dependency
- name: boost
buildsystem: simple
build-commands:
- ./bootstrap.sh --prefix=/app --with-libraries=program_options,filesystem,system,thread,locale,date_time,atomic,iostreams
- ./b2
- ./b2 install
cleanup:
- /include
- /lib/cmake
- /lib/*.a
- /lib/*.so
sources:
- sha256: cc4b893acf645c9d4b698e9a0f08ca8846aa5d6c68275c14c3e7949c24109454
type: archive
url: https://boostorg.jfrog.io/artifactory/main/release/1.84.0/source/boost_1_84_0.tar.bz2
# do not update boost to 1.85 until new innoextract version released
# x-checker-data:
# type: anitya
# project-id: 6845
# stable-only: true
# url-template: https://boostorg.jfrog.io/artifactory/main/release/$version/source/boost_${major}_${minor}_$patch.tar.bz2
- name: innoextract
buildsystem: cmake-ninja
cleanup:
- /share/man
sources:
- type: archive
url: https://github.com/dscharrer/innoextract/releases/download/1.9/innoextract-1.9.tar.gz
sha256: 6344a69fc1ed847d4ed3e272e0da5998948c6b828cb7af39c6321aba6cf88126
x-checker-data:
type: anitya
project-id: 8646
stable-only: true
url-template: https://github.com/dscharrer/innoextract/releases/download/$version/innoextract-$version.tar.gz
- name: bchunk
buildsystem: simple
build-commands:
- make
- install -Dm 744 bchunk -t /app/bin
sources:
- type: git
url: https://github.com/hessu/bchunk
tag: release/1.2.2
commit: 0c7009d1d2be1cc12edebf926010f417069b6211
x-checker-data:
type: git
tag-pattern: ^.*?([\d.]+)$