-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnet.sf.fuse_emulator.yaml
123 lines (123 loc) · 3.91 KB
/
net.sf.fuse_emulator.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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
app-id: net.sf.fuse_emulator
branch: stable
runtime: org.freedesktop.Platform
runtime-version: '23.08'
sdk: org.freedesktop.Sdk
command: fuse
rename-desktop-file: fuse.desktop
rename-icon: fuse
copy-icon: true
finish-args:
# X11 + XShm access
- --share=ipc
- --socket=x11
# Sound
- --socket=pulseaudio
- --device=all
# Network access (for Spectranet)
- --share=network
# Home directory (for loading and saving Spectrum software)
- --filesystem=home
build-options:
cflags: -O2 -g
cxxflags: -O2 -g
cppflags: -DG_DISABLE_CAST_CHECKS -DGLIB_DISABLE_DEPRECATION_WARNINGS -DGDK_DISABLE_DEPRECATION_WARNINGS
env:
V: '1'
cleanup:
- /bin/sdl-config
- /include
- /lib/*.a
- /lib/*.la
- /lib/*.so
- /lib/pkgconfig
- /share/aclocal
- /share/applications/mimeinfo.cache
- /share/icons/hicolor/icon-theme.cache
- /share/man
modules:
# SDL 1.2 compatibility layer for SDL 2
- shared-modules/SDL/sdl12-compat.json
# Audiofile is used for loading Spectrum data from WAV files
- name: libaudiofile
config-opts:
- --disable-docs
- --disable-examples
- --disable-flac
- --disable-static
sources:
- type: archive
url: http://audiofile.68k.org/audiofile-0.3.6.tar.gz
sha256: cdc60df19ab08bfe55344395739bb08f50fc15c92da3962fac334d3bff116965
- type: patch
path: audiofile-build.patch
cleanup:
- /bin
# Library to handle Spectrum snapshots, tapes and other files
- name: libspectrum
sources:
- type: archive
url: https://netcologne.dl.sourceforge.net/project/fuse-emulator/libspectrum/1.5.0/libspectrum-1.5.0.tar.gz
sha256: a353cb46e9b1a281061d816353ea010d0a6fe78e6a17aa0b7b74271ca5e4acfc
# Misc utilities (not needed if you simply want to run Fuse)
- name: fuse-utils
sources:
- type: archive
url: https://netcologne.dl.sourceforge.net/project/fuse-emulator/fuse-utils/1.4.3/fuse-utils-1.4.3.tar.gz
sha256: 0d2588bc37fcc6b039010c9ed68aa1e0bf513a80978737b5545f1d4f1684c325
# The emulator itself
- name: fuse
config-opts:
- --with-x
- --with-audio-driver=sdl
- --enable-desktop-integration
rm-configure: true
sources:
- type: archive
url: https://netcologne.dl.sourceforge.net/project/fuse-emulator/fuse/1.6.0/fuse-1.6.0.tar.gz
sha256: 3a8fedf2ffe947c571561bac55a59adad4c59338f74e449b7e7a67d9ca047096
- type: patch
paths:
- fuse-config-dir.patch
- set-generic-icon.patch
- type: file
path: net.sf.fuse_emulator.appdata.xml
- type: script
dest-filename: autogen.sh
commands:
- autoreconf -f -i -I m4
- type: shell
commands:
- install -m644 -D net.sf.fuse_emulator.appdata.xml /app/share/appdata/net.sf.fuse_emulator.appdata.xml
# The SDL version of the emulator
- name: fuse-sdl
config-opts:
- --with-sdl
- --with-audio-driver=sdl
- --disable-desktop-integration
make-args:
- EXEEXT=-sdl
make-install-args:
- EXEEXT=-sdl
rm-configure: true
sources:
- type: archive
url: https://netcologne.dl.sourceforge.net/project/fuse-emulator/fuse/1.6.0/fuse-1.6.0.tar.gz
sha256: 3a8fedf2ffe947c571561bac55a59adad4c59338f74e449b7e7a67d9ca047096
- type: patch
paths:
- fuse-config-dir.patch
- set-generic-icon.patch
- type: script
dest-filename: autogen.sh
commands:
- autoreconf -f -i -I m4
- type: shell
commands:
- cp /app/share/applications/fuse.desktop /app/share/applications/net.sf.fuse_emulator.sdl.desktop
- >-
desktop-file-edit --set-key=Name --set-value='SDL Fuse'
--set-key=Exec --set-value='fuse-sdl %f'
--set-key=Icon --set-value='net.sf.fuse_emulator'
--remove-category=GTK
/app/share/applications/net.sf.fuse_emulator.sdl.desktop