Merge branch 'feat/mame-flatpak' into cooker-0.8.0b

This commit is contained in:
XargonWan 2023-12-12 08:57:24 +01:00
commit 2262e21ffd

View file

@ -1306,34 +1306,52 @@ modules:
# MAME - Start # MAME - Start
# https://sdlmame.wallyweek.org/download/ # https://sdlmame.wallyweek.org/download/
# To enable the debugger try: QT_HOME='/usr'
- name: mame - name: mame
buildsystem: simple buildsystem: simple
build-options:
no-debuginfo: true
strip: true
build-commands: build-commands:
- ar xv mame*.deb - make
- tar xvf control.tar.zst -j ${FLATPAK_BUILDER_N_JOBS}
- tar xvf data.tar.zst CFLAGS+=-Wno-error=restrict
- cp -r etc ${FLATPAK_DEST} USE_QTDEBUG=0
- mkdir -p ${FLATPAK_DEST}/bin USE_WAYLAND=1
- cp -r usr/games/mame ${FLATPAK_DEST}/bin USE_SYSTEM_LIB_FLAC=1
- chmod +x ${FLATPAK_DEST}/bin/mame SDL_INI_PATH='$$HOME/.APP_NAME;/app/share/APP_NAME/ini'
- cp -r usr/share ${FLATPAK_DEST} LDOPTS=-Wl,-s
- install -Dm 0755 mame ${FLATPAK_DEST}/bin/mame
- cp COPYING ${FLATPAK_DEST}/bin/
- cp uismall.bdf ${FLATPAK_DEST}/bin/
- mkdir -p ${FLATPAK_DEST}/share/mame/
- cp -r artwork/ ${FLATPAK_DEST}/share/mame/
- cp -r bgfx/ ${FLATPAK_DEST}/share/mame/
- cp -r ctrlr/ ${FLATPAK_DEST}/share/mame/
- mkdir -p ${FLATPAK_DEST}/share/mame/docs/
- cp -r docs/legal/ ${FLATPAK_DEST}/share/mame/docs/
- cp -r docs/man/ ${FLATPAK_DEST}/share/mame/docs
- cp -r hash/ ${FLATPAK_DEST}/share/mame/
- cp -r hlsl/ ${FLATPAK_DEST}/share/mame/
- cp -r ini/ ${FLATPAK_DEST}/share/mame/
- install -Dm 0644 mame.ini ${FLATPAK_DEST}/share/mame/ini/mame.ini
- cp -r language/ ${FLATPAK_DEST}/share/mame/
- cp -r plugins/ ${FLATPAK_DEST}/share/mame/
- cp -r roms/ ${FLATPAK_DEST}/share/mame/
- cp -r samples/ ${FLATPAK_DEST}/share/mame/
sources: sources:
- type: archive
url: https://github.com/mamedev/mame/archive/refs/tags/mame0261.tar.gz
sha256: 51d5ce1563897709ceb7a924c31a70cc5ff2bec466aab8d0cc9ff3cc72b38899
- type: file - type: file
url: http://de.archive.ubuntu.com/ubuntu/pool/universe/m/mame/mame_0.242+dfsg.1-1_amd64.deb path: rd-submodules/mame/mame.ini
sha256: e3d785d26dfb477519608d63114882487f8c5eb7382eb252784ed7515e2ef281 - type: patch
path: rd-submodules/mame/floppy.patch
- name: mame-data - type: patch
buildsystem: simple path: rd-submodules/mame/sound.patch
build-commands: - type: patch
- ar xv mame*.deb path: rd-submodules/mame/ym3802.patch
- tar xvf control.tar.zst
- tar xvf data.tar.zst
- cp -r usr/share ${FLATPAK_DEST}
sources:
- type: file
url: http://ge.archive.ubuntu.com/ubuntu/pool/universe/m/mame/mame-data_0.242+dfsg.1-1_all.deb
sha256: c1a560f41f2ddff03810f121825b9a2d1ca615899d07a57a9a8fa62506de7d27
# MAME - End # MAME - End