-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathorg.openmsx.openMSX.yaml
106 lines (97 loc) · 3.59 KB
/
org.openmsx.openMSX.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
app-id: org.openmsx.openMSX
runtime: org.freedesktop.Platform
runtime-version: '24.08'
sdk: org.freedesktop.Sdk
command: openmsx
finish-args: # flatpak permissions
- --device=all # needed for gamepads and serial/parallel
- --share=ipc # needed for X11
- --share=network # needed for networking
- --socket=x11
- --socket=wayland
- --socket=pulseaudio
- --filesystem=home
cleanup:
- /include
- /lib/pkgconfig
- /share/aclocal
- /share/man
- '*.la'
- '*.a'
- /share/doc
modules:
# Build Mesa GLU and GLEW
- shared-modules/glu/glu-9.json
- shared-modules/glew/glew.json
# Build TCL
- name: tcl
sources:
- type: archive
url: https://prdownloads.sourceforge.net/tcl/tcl8.6.13-src.tar.gz
sha256: 43a1fae7412f61ff11de2cfd05d28cfc3a73762f354a417c62370a54e2caf066
x-checker-data:
type: anitya
project-id: 4941
stable-only: true
url-template: https://prdownloads.sourceforge.net/tcl/tcl$version-src.tar.gz
subdir: unix
build-options:
no-debuginfo: true
cleanup:
- /bin
- /man
# Build openMSX
- name: openmsx
sources:
- type: git
url: https://github.com/openMSX/openMSX
tag: RELEASE_20_0
- type: file
path: org.openmsx.openMSX.desktop
- type: file
path: org.openmsx.openMSX.metainfo.xml
- type: shell
commands:
- sed -i 's/^INSTALL_BASE.*/INSTALL_BASE:=\/app\/share\/'${FLATPAK_ID}'/' build/custom.mk
- sed -i "s/distroRoot = thirdPartyInstall or None/distroRoot = '\/app'/" build/probe.py
- ln -s /usr/bin/libpng-config /app/bin/libpng-config
- ln -s /usr/bin/sdl2-config /app/bin/sdl2-config
- ln -s /usr/bin/pkg-config /app/bin/pkg-config
- ln -s /usr/include/SDL2 /app/include/SDL2
build-options:
env:
- TCL_CONFIG=/app/lib
post-install:
- install -Dm755 /app/share/${FLATPAK_ID}/bin/openmsx /app/bin
- install -Dm644 org.openmsx.openMSX.desktop /app/share/applications/${FLATPAK_ID}.desktop
- install -Dm644 org.openmsx.openMSX.metainfo.xml /app/share/metainfo/${FLATPAK_ID}.metainfo.xml
- install -Dm644 share/icons/openMSX-logo-16.png /app/share/icons/hicolor/16x16/apps/${FLATPAK_ID}.png
- install -Dm644 share/icons/openMSX-logo-32.png /app/share/icons/hicolor/32x32/apps/${FLATPAK_ID}.png
- install -Dm644 share/icons/openMSX-logo-48.png /app/share/icons/hicolor/48x48/apps/${FLATPAK_ID}.png
- install -Dm644 share/icons/openMSX-logo-64.png /app/share/icons/hicolor/64x64/apps/${FLATPAK_ID}.png
- install -Dm644 share/icons/openMSX-logo-128.png /app/share/icons/hicolor/128x128/apps/${FLATPAK_ID}.png
- install -Dm644 share/icons/openMSX-logo-256.png /app/share/icons/hicolor/256x256/apps/${FLATPAK_ID}.png
cleanup:
- /app/share/${FLATPAK_ID}/bin/openmsx
- /app/share/${FLATPAK_ID}/bin
- /app/bin/libpng-config
- /app/bin/pkg-config
- /app/bin/sdl2-config
# Build icoutils
- name: icoutils
config-opts:
- --enable-maintainer-mode
sources:
- type: archive
url: https://savannah.nongnu.org/download/icoutils/icoutils-0.32.3.tar.bz2
sha256: 17abe02d043a253b68b47e3af69c9fc755b895db68fdc8811786125df564c6e0
- type: shell
commands:
- cp -p /usr/share/automake-*/config.{sub,guess} "build-aux"/;
- autoreconf -vfi;
x-checker-data:
type: anitya
project-id: 1360
stable-only: true
url-template: https://savannah.nongnu.org/download/icoutils/icoutils-$version.tar.bz2
cleanup: ['*']