mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-10-14 02:17:36 +08:00

Use reverse DNS naming for .desktop and .metainfo.xml as your supposed to do nowadays according to freedesktop.org. This also happens to match what is mandated by flatpak, so it simplifies the flatpak post install script a little. + cleanup the mess that flatpak builds can leave behind when you do a clean.
75 lines
2.3 KiB
YAML
75 lines
2.3 KiB
YAML
app-id: com.dosbox_x.DOSBox-X-sdl2
|
|
runtime: org.freedesktop.Platform
|
|
runtime-version: '20.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
|
|
- --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 DOSBox-X SDL2
|
|
- name: dosbox-x
|
|
rm-configure: true
|
|
config-opts:
|
|
- --enable-core-inline
|
|
- --enable-debug=heavy
|
|
- --enable-sdl2
|
|
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
|
|
- desktop-file-edit --set-key=Name --set-value="DOSBox-X SDL2" /app/share/applications/${FLATPAK_ID}.desktop
|
|
- appstream-util modify /app/share/metainfo/${FLATPAK_ID}.metainfo.xml id dosbox-x-sdl2
|
|
- appstream-util modify /app/share/metainfo/${FLATPAK_ID}.metainfo.xml name "DOSBox-X SDL2"
|