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

This reverts commit 2262e21ffd, reversing
changes made to 37e79bd66f.
This commit is contained in:
XargonWan 2023-12-12 11:13:00 +01:00
parent 964e77bbcb
commit 0cff883974

View file

@ -1306,52 +1306,34 @@ 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:
- make - ar xv mame*.deb
-j ${FLATPAK_BUILDER_N_JOBS} - tar xvf control.tar.zst
CFLAGS+=-Wno-error=restrict - tar xvf data.tar.zst
USE_QTDEBUG=0 - cp -r etc ${FLATPAK_DEST}
USE_WAYLAND=1 - mkdir -p ${FLATPAK_DEST}/bin
USE_SYSTEM_LIB_FLAC=1 - cp -r usr/games/mame ${FLATPAK_DEST}/bin
SDL_INI_PATH='$$HOME/.APP_NAME;/app/share/APP_NAME/ini' - chmod +x ${FLATPAK_DEST}/bin/mame
LDOPTS=-Wl,-s - cp -r usr/share ${FLATPAK_DEST}
- 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
path: rd-submodules/mame/mame.ini url: http://de.archive.ubuntu.com/ubuntu/pool/universe/m/mame/mame_0.242+dfsg.1-1_amd64.deb
- type: patch sha256: e3d785d26dfb477519608d63114882487f8c5eb7382eb252784ed7515e2ef281
path: rd-submodules/mame/floppy.patch
- type: patch - name: mame-data
path: rd-submodules/mame/sound.patch buildsystem: simple
- type: patch build-commands:
path: rd-submodules/mame/ym3802.patch - ar xv mame*.deb
- 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