-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmoe.launcher.an-anime-game-launcher.yml
175 lines (163 loc) · 5.54 KB
/
moe.launcher.an-anime-game-launcher.yml
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
app-id: moe.launcher.an-anime-game-launcher
runtime: org.gnome.Platform
runtime-version: '47'
sdk: org.gnome.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.rust-stable
command: moe.launcher.an-anime-game-launcher
rename-desktop-file: anime-game-launcher.desktop
finish-args:
- --share=network
- --share=ipc
- --socket=x11 # Not fallback-x11, because while the launcher supports Wayland, Wine doesn't (yet)
- --socket=wayland
- --socket=pulseaudio
- --filesystem=/mnt
- --filesystem=/media
- --filesystem=/run/media
- --talk-name=org.freedesktop.Notifications
- --device=all # Controllers
- --allow=devel # Required to make Wine work
build-options:
append-path: /usr/lib/sdk/rust-stable/bin
cleanup:
- /include
- /lib/pkgconfig
- /man
- /share/doc
- /share/gtk-doc
- /share/man
- /share/pkgconfig
- /share/vala
- '*.la'
- '*.a'
modules:
# copy/pasted from bottles
- name: gamemode
buildsystem: meson
config-opts:
- -Dwith-examples=false
- -Dwith-util=false
- -Dwith-sd-bus-provider=no-daemon
sources: &gamemode_sources
- type: archive
url: https://github.com/FeralInteractive/gamemode/releases/download/1.8.2/gamemode-1.8.2.tar.xz
sha256: 98cd1bcf6101c92fe87f974c7776af23c7e18f29ce6ecfe572b1c39dcde5c181
x-checker-data:
type: anitya
project-id: 17410
url-template: https://github.com/FeralInteractive/gamemode/releases/download/$version/gamemode-$version.tar.xz
- name: gamemoderun
buildsystem: simple
build-commands:
- install -Dm755 data/gamemoderun -t /app/bin
sources: *gamemode_sources
- name: git
buildsystem: autotools
config-opts:
- --without-tcltk
post-install:
- rm -rf /app/share/gitweb
- find /app/libexec/git-core/ -type f -not -name git -and -not -name git-rev-parse
-and -not -name git-remote -and -not -name git-remote-https -and -not -name
git-fetch -and -not -name git-reset -and -not -name git-clone -delete
sources:
- type: archive
url: https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.47.1.tar.xz
sha256: f3d8f9bb23ae392374e91cd9d395970dabc5b9c5ee72f39884613cd84a6ed310
x-checker-data:
type: anitya
project-id: 5350
url-template: https://mirrors.edge.kernel.org/pub/software/scm/git/git-$version.tar.xz
- name: p7zip
buildsystem: simple
build-commands:
- make 7z install DEST_HOME=/app
sources:
- type: git
url: https://github.com/p7zip-project/p7zip
tag: v17.05
# freedesktop sdk does not provide avdec_h264 due to not compiling ffmpeg without h.264 support, so we have to compile it ourselves
# this is mostly taken from the freedesktop sdk repository and the kdenlive flatpak manifest
- name: ffmpeg
buildsystem: autotools
config-opts:
- --disable-doc
- --disable-static
- --enable-shared
- --enable-gnutls
- --enable-gcrypt
- --enable-ladspa
- --enable-lcms2
- --enable-libaom
- --enable-libdav1d
- --enable-libmp3lame
- --enable-libfontconfig
- --enable-libfreetype
- --enable-libfribidi
- --enable-libopus
- --enable-libpulse
- --enable-libspeex
- --enable-libtheora
- --enable-libvorbis
- --enable-libvpx
- --enable-librsvg
- --enable-libwebp
- --enable-libxml2
- --enable-libopenjpeg
- --enable-openal
- --enable-opengl
- --enable-sdl2
- --enable-vulkan
- --enable-zlib
- --enable-libv4l2
- --enable-libxcb
- --enable-vdpau
- --enable-vaapi
- --enable-pthreads
- --enable-libfdk-aac
- --enable-decoder="h264"
build-options:
prepend-path: /usr/lib/sdk/llvm17/bin
prepend-ld-library-path: /usr/lib/sdk/llvm17/lib
cleanup:
- /share/ffmpeg/examples
sources:
- type: git
url: https://git.ffmpeg.org/ffmpeg.git
tag: n7.1
- name: aagl
buildsystem: simple
build-options:
env:
CARGO_HOME: ./cargo
build-commands:
- cargo --offline fetch --manifest-path Cargo.toml --verbose
- cargo --offline build --release --verbose
- cp target/release/anime-game-launcher /app/bin/anime-game-launcher
- cp moe.launcher.an-anime-game-launcher.sh /app/bin/moe.launcher.an-anime-game-launcher
- chmod +x /app/bin/moe.launcher.an-anime-game-launcher
sources:
- type: git
url: https://github.com/an-anime-team/an-anime-game-launcher
tag: &aagl_tag 3.13.0
- type: file
path: moe.launcher.an-anime-game-launcher.sh
- cargo-sources.json
# not included in aagl so the launcher doesn't have to be rebuilt every time the metadata is changed
- name: metadata
buildsystem: simple
build-commands:
- mkdir -p /app/share/icons/hicolor/512x512/apps/
- cp assets/images/icon.png /app/share/icons/hicolor/512x512/apps/moe.launcher.an-anime-game-launcher.png
- desktop-file-install --dir=/app/share/applications --set-key=Exec --set-value=moe.launcher.an-anime-game-launcher
--set-key=Icon --set-value=moe.launcher.an-anime-game-launcher assets/anime-game-launcher.desktop
- mkdir -p /app/share/metainfo/
- cp moe.launcher.an-anime-game-launcher.metainfo.xml /app/share/metainfo/
- mkdir -p /app/utils/
sources:
- type: git
url: https://github.com/an-anime-team/an-anime-game-launcher
tag: *aagl_tag
- type: file
path: moe.launcher.an-anime-game-launcher.metainfo.xml