-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathio.github.dxx_rebirth.dxx-rebirth.yml
75 lines (72 loc) · 3.51 KB
/
io.github.dxx_rebirth.dxx-rebirth.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
app-id: io.github.dxx_rebirth.dxx-rebirth
runtime: org.freedesktop.Platform
runtime-version: '24.08'
sdk: org.freedesktop.Sdk
command: io.github.dxx_rebirth.dxx-rebirth.sh
finish-args:
# hardware 3D and controller access
- --device=all
# X11 + XShm access
- --share=ipc
- --socket=x11
# Audio
- --socket=pulseaudio
# Enable network for multiplayer
- --share=network
modules:
- shared-modules/glu/glu-9.json
- shared-modules/physfs/physfs.json
- name: net.sourceforge.scons.scons
buildsystem: simple
sources:
- type: archive
url: https://downloads.sourceforge.net/project/scons/scons/4.6.0/SCons-4.6.0.tar.gz
sha256: 7db28958b188b800f803c287d0680cc3ac7c422ed0b1cf9895042c52567803ec
build-commands:
- pip3 install --no-index --no-build-isolation --prefix=/app .
cleanup:
- "*"
- name: dxx-rebirth
buildsystem: simple
sources:
- type: git
url: https://github.com/dxx-rebirth/dxx-rebirth.git
# Pin to recent commit with AppStream metadata for now as latest tag is from 2018
commit: 5b8dc756f67d3077cfe171838aa15c798cc67c98
# For future releases, use tags
x-checker-data:
type: git
tag-pattern: ^v\d+(\.\d+)+.*$
- type: file
path: io.github.dxx_rebirth.dxx-rebirth.sh
- type: file
path: io.github.dxx_rebirth.dxx-rebirth.png
- type: file
path: io.github.dxx_rebirth.dxx-rebirth.metainfo.xml
build-commands:
- scons -j$FLATPAK_BUILDER_N_JOBS install sdl2=1 d2x=1 d1x=1 lto=1 sdlmixer=1 debug=1 sharepath=$XDG_DATA_HOME DESTDIR=/app prefix=/
post-install:
# launcher script
- install -Dm 755 ${FLATPAK_ID}.sh /app/bin/${FLATPAK_ID}.sh
# Icons
- install -Dm 644 d2x-rebirth/d2x-rebirth.png /app/share/icons/hicolor/128x128/apps/${FLATPAK_ID}.d2x-rebirth.png
- install -Dm 644 d1x-rebirth/d1x-rebirth.png /app/share/icons/hicolor/128x128/apps/${FLATPAK_ID}.d1x-rebirth.png
- install -Dm 644 ${FLATPAK_ID}.png /app/share/icons/hicolor/128x128/apps/${FLATPAK_ID}.png
# metainfo
- install -Dm 644 ${FLATPAK_ID}.metainfo.xml /app/share/metainfo/${FLATPAK_ID}.metainfo.xml
# D2X desktop file
- desktop-file-edit --set-name="D2X-Rebirth" d2x-rebirth/d2x-rebirth.desktop
- desktop-file-edit --set-key=Exec --set-value="${FLATPAK_ID}.sh d2x" d2x-rebirth/d2x-rebirth.desktop
- desktop-file-edit --set-icon=${FLATPAK_ID}.d2x-rebirth d2x-rebirth/d2x-rebirth.desktop
- install -Dm 644 d2x-rebirth/d2x-rebirth.desktop /app/share/applications/${FLATPAK_ID}.d2x-rebirth.desktop
# D1X desktop file
- desktop-file-edit --set-name="D1X-Rebirth" d1x-rebirth/d1x-rebirth.desktop
- desktop-file-edit --set-key=Exec --set-value="${FLATPAK_ID}.sh d1x" d1x-rebirth/d1x-rebirth.desktop
- desktop-file-edit --set-icon=${FLATPAK_ID}.d1x-rebirth d1x-rebirth/d1x-rebirth.desktop
- install -Dm 644 d1x-rebirth/d1x-rebirth.desktop /app/share/applications/${FLATPAK_ID}.d1x-rebirth.desktop
# DXX desktop file
- desktop-file-edit --set-name="DXX-Rebirth" d2x-rebirth/d2x-rebirth.desktop
- desktop-file-edit --set-key=Exec --set-value="${FLATPAK_ID}.sh" d2x-rebirth/d2x-rebirth.desktop
- desktop-file-edit --set-key=Comment --set-value="Modern source port of Descent and Descent II" d2x-rebirth/d2x-rebirth.desktop
- desktop-file-edit --set-icon=${FLATPAK_ID} d2x-rebirth/d2x-rebirth.desktop
- install -Dm 644 d2x-rebirth/d2x-rebirth.desktop /app/share/applications/${FLATPAK_ID}.desktop