Merge pull request #3 from flathub/247-2

Fix up make command line, add some additional logo sizes
This commit is contained in:
jflatt 2022-08-31 08:27:13 -07:00 committed by GitHub
commit ab81fb5f3f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 18 additions and 5 deletions

View file

@ -26,8 +26,6 @@ An explanation for some of the options included in the `org.mamedev.MAME.yaml' m
`--filesystem=host:ro` primarily to be used for external data, roms, samples, etc.
### Patches
### Configuring
Currently these are the patches applied:
`inipath.patch` default ini paths include the home '~/.mame' directory and two relative paths '.' and 'ini'. The relative paths are not helpful inside the sandbox, and the '~/.mame' contents shouldn't be overwritten with each new MAME release. Instead the default ini search path is patched to '$HOME/.mame;/app/share/mame/ini'. This will allow a default base ini in '/app/share/mame/ini/mame.ini' and can be overridden in '~/.mame/mame.ini'.
Default ini paths include the home '\~/.mame' directory and two relative paths '.' and 'ini'. The relative paths are not helpful inside the sandbox, and the '\~/.mame' contents shouldn't be overwritten with each new MAME release. Instead the default ini search path is patched to '$HOME/.mame;/app/share/mame/ini'. This will allow a default base ini in '/app/share/mame/ini/mame.ini' and can be overridden in '\~/.mame/mame.ini'.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

BIN
mame16x16.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
mame24x24.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 28 KiB

BIN
mame32x32.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

BIN
mame48x48.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

BIN
mame64x64.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

View file

@ -22,10 +22,15 @@ modules:
no-debuginfo: true
strip: true
build-commands:
- make -j ${FLATPAK_BUILDER_N_JOBS} CFLAGS="-DUSE_SYSTEM_LIB_FLAC=1 -DLDOPTS=-Wl,-s"
- make -j ${FLATPAK_BUILDER_N_JOBS} USE_SYSTEM_LIB_FLAC=1 LDOPTS=-Wl,-s
- install -Dm 0755 mame ${FLATPAK_DEST}/bin/mame
- install -Dm 0644 ${FLATPAK_ID}.desktop ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop
- install -Dm 0644 ${FLATPAK_ID}.metainfo.xml ${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.metainfo.xml
- install -Dm 0644 mame16x16.png ${FLATPAK_DEST}/share/icons/hicolor/16x16/apps/${FLATPAK_ID}.png
- install -Dm 0644 mame24x24.png ${FLATPAK_DEST}/share/icons/hicolor/24x24/apps/${FLATPAK_ID}.png
- install -Dm 0644 mame32x32.png ${FLATPAK_DEST}/share/icons/hicolor/32x32/apps/${FLATPAK_ID}.png
- install -Dm 0644 mame48x48.png ${FLATPAK_DEST}/share/icons/hicolor/48x48/apps/${FLATPAK_ID}.png
- install -Dm 0644 mame64x64.png ${FLATPAK_DEST}/share/icons/hicolor/64x64/apps/${FLATPAK_ID}.png
- install -Dm 0644 mame128x128.png ${FLATPAK_DEST}/share/icons/hicolor/128x128/apps/${FLATPAK_ID}.png
- install -Dm 0644 mame256x256.png ${FLATPAK_DEST}/share/icons/hicolor/256x256/apps/${FLATPAK_ID}.png
- cp COPYING ${FLATPAK_DEST}/bin/
@ -49,6 +54,16 @@ modules:
- type: archive
url: https://github.com/mamedev/mame/archive/refs/tags/mame0247.tar.gz
sha256: a2486d34b15f13c3d7028436f7da373d37c7fd47f34a2ea19ff48cf57daf29e1
- type: file
path: mame16x16.png
- type: file
path: mame24x24.png
- type: file
path: mame32x32.png
- type: file
path: mame48x48.png
- type: file
path: mame64x64.png
- type: file
path: mame128x128.png
- type: file