mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-05-09 03:41:10 +08:00
91 lines
2.5 KiB
YAML
91 lines
2.5 KiB
YAML
app-id: com.dosbox_x.DOSBox-X
|
|
runtime: org.freedesktop.Platform
|
|
runtime-version: '21.08'
|
|
sdk: org.freedesktop.Sdk
|
|
|
|
command: dosbox-x
|
|
|
|
finish-args: # flatpak permissions
|
|
- --device=all # needed for gamepads and serial/parallel
|
|
- --share=ipc # needed for X11
|
|
- --share=network # needed for networking (NE2000, IPX)
|
|
- --socket=x11 # default to X11 due to FS issues
|
|
- --socket=pulseaudio
|
|
- --filesystem=home
|
|
|
|
cleanup:
|
|
- '/include'
|
|
- '/lib/pkgconfig'
|
|
- '/share/aclocal'
|
|
- '/share/man'
|
|
- '*.la'
|
|
- '*.a'
|
|
- '/share/doc'
|
|
|
|
modules:
|
|
|
|
# Build Mesa GLU
|
|
- name: GLU
|
|
config-opts:
|
|
- --disable-static
|
|
sources:
|
|
- type: archive
|
|
url: https://mesa.freedesktop.org/archive/glu/glu-9.0.1.tar.xz
|
|
sha256: fb5a4c2dd6ba6d1c21ab7c05129b0769544e1d68e1e3b0ffecb18e73c93055bc
|
|
cleanup:
|
|
- /include
|
|
- /lib/*.a
|
|
- /lib/*.la
|
|
- /lib/pkgconfig
|
|
|
|
# Build FluidSynth
|
|
- name: FluidSynth
|
|
buildsystem: cmake-ninja
|
|
config-opts:
|
|
- -DLIB_SUFFIX=
|
|
cleanup:
|
|
- /bin
|
|
- /include
|
|
- /lib/pkgconfig
|
|
- /share/man
|
|
- "*.so"
|
|
sources:
|
|
- type: archive
|
|
url: https://github.com/FluidSynth/fluidsynth/archive/v2.1.5.tar.gz
|
|
sha256: b539b7c65a650b56f01cd60a4e83c6125c217c5a63c0c214ef6274894a677d00
|
|
|
|
# Build libslirp for networking
|
|
- name: libslirp
|
|
buildsystem: meson
|
|
cleanup:
|
|
- "/include"
|
|
- "/lib/pkgconfig"
|
|
sources:
|
|
- type: git
|
|
url: https://gitlab.freedesktop.org/slirp/libslirp
|
|
tag: "v4.6.1"
|
|
x-checker-data:
|
|
type: anitya
|
|
project-id: 96796
|
|
stable-only: true
|
|
tag-template: v$version
|
|
|
|
# Build DOSBox-X SDL2
|
|
- name: dosbox-x
|
|
rm-configure: true
|
|
config-opts:
|
|
- --enable-core-inline
|
|
- --enable-debug=heavy
|
|
- --enable-sdl2
|
|
cleanup:
|
|
- /share/man
|
|
sources:
|
|
- type: dir
|
|
path: ../..
|
|
post-install:
|
|
- install -Dm644 /app/share/applications/com.dosbox_x.DOSBox-X.desktop /app/share/applications/${FLATPAK_ID}.desktop
|
|
- install -Dm644 /app/share/icons/hicolor/scalable/apps/dosbox-x.svg /app/share/icons/hicolor/scalable/apps/${FLATPAK_ID}.svg
|
|
- install -Dm644 /app/share/metainfo/com.dosbox_x.DOSBox-X.metainfo.xml /app/share/metainfo/${FLATPAK_ID}.metainfo.xml
|
|
- desktop-file-edit --set-key=Icon --set-value=${FLATPAK_ID} /app/share/applications/${FLATPAK_ID}.desktop
|
|
- appstream-util modify /app/share/metainfo/${FLATPAK_ID}.metainfo.xml id dosbox-x
|