-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathcom.github.k4zmu2a.spacecadetpinball.yml
86 lines (83 loc) · 3.5 KB
/
com.github.k4zmu2a.spacecadetpinball.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
app-id: com.github.k4zmu2a.spacecadetpinball
runtime: org.freedesktop.Platform
runtime-version: "24.08"
sdk: org.freedesktop.Sdk
command: SpaceCadetPinball
rename-appdata-file: SpaceCadetPinball.metainfo.xml
rename-desktop-file: SpaceCadetPinball.desktop
finish-args:
- --socket=pulseaudio
- --socket=wayland
- --socket=fallback-x11
- --share=ipc
- --device=dri
- --env=SDL_SOUNDFONTS=/app/share/soundfonts/default-GM.sf3
modules:
- shared-modules/linux-audio/fluidsynth2.json
- name: SDL2_mixer
buildsystem: autotools
config-opts:
- --disable-static
cleanup:
- /bin
- /include
- /lib/pkgconfig
- /share
sources:
- type: git
url: https://github.com/libsdl-org/SDL_mixer/
tag: release-2.8.0
commit: a37e09f85d321a13dfcf0d4432827ee09beeb623
x-checker-data:
type: git
tag-pattern: ^release-(\d+.\d+.\d+)$
- name: FluidR3Mono
buildsystem: simple
build-commands:
- install -D -m 644 -t $FLATPAK_DEST/share/soundfonts FluidR3Mono_GM.sf3
- ln -s $FLATPAK_DEST/share/soundfonts/{FluidR3Mono_GM,default-GM}.sf3
sources:
- type: file
url: https://github.com/musescore/MuseScore/raw/3.6.2/share/sound/FluidR3Mono_GM.sf3
sha256: 2aacd036d7058d40a371846ef2f5dc5f130d648ab3837fe2626591ba49a71254
- name: Pinball
buildsystem: cmake-ninja
no-make-install: true
config-opts:
- -DCMAKE_BUILD_TYPE=RelWithDebInfo
post-install:
- cat assets_list | while read line; do ln -s ${FLATPAK_DEST}/extra/Pinball/$line
${FLATPAK_DEST}/bin/; done
- install -Dm755 apply_extra ${FLATPAK_DEST}/bin/apply_extra
- install -Dm755 bin/SpaceCadetPinball -t ${FLATPAK_DEST}/bin/
- install -Dm644 Platform/Linux/SpaceCadetPinball.desktop -t ${FLATPAK_DEST}/share/applications/
- install -Dm644 Platform/Linux/SpaceCadetPinball.metainfo.xml -t ${FLATPAK_DEST}/share/metainfo/
- sed -i -e "s/SpaceCadetPinball.desktop/${FLATPAK_ID}.desktop/g" ${FLATPAK_DEST}/share/metainfo/SpaceCadetPinball.metainfo.xml
- sed -i -e "s/Icon=SpaceCadetPinball/Icon=${FLATPAK_ID}/g" ${FLATPAK_DEST}/share/applications/SpaceCadetPinball.desktop
- install -Dm644 SpaceCadetPinball/Icon_16x16.png ${FLATPAK_DEST}/share/icons/hicolor/16x16/apps/${FLATPAK_ID}.png
- install -Dm644 SpaceCadetPinball/Icon_32x32.png ${FLATPAK_DEST}/share/icons/hicolor/32x32/apps/${FLATPAK_ID}.png
- install -Dm644 SpaceCadetPinball/Icon_48x48.png ${FLATPAK_DEST}/share/icons/hicolor/48x48/apps/${FLATPAK_ID}.png
- install -Dm644 SpaceCadetPinball/Icon_128x128.png ${FLATPAK_DEST}/share/icons/hicolor/128x128/apps/${FLATPAK_ID}.png
- install -Dm644 SpaceCadetPinball/Icon_192x192.png ${FLATPAK_DEST}/share/icons/hicolor/192x192/apps/${FLATPAK_ID}.png
sources:
- type: git
url: https://github.com/k4zmu2a/SpaceCadetPinball
#tag: Release_2.1.0
commit: 52126feb40327345c64fd26adf310b9334b27913
x-checker-data:
type: git
tag-pattern: ^Release_(\d+.\d+.\d+)$
- type: patch
path: 0001-Remove-deprecated-metainfo.patch
- type: file
path: assets_list
- type: extra-data
filename: pinball.zip
url: https://archive.org/download/pinball_202007/Pinball.zip
sha256: 1078b6ec75a36b5585061d1ebdd3f27019d97c1ab7c5a4bb9f1159932aae3109
size: 1276182
- type: script
dest-filename: apply_extra
commands:
- unzip -q pinball.zip
- rm pinball.zip