-
Notifications
You must be signed in to change notification settings - Fork 3
/
org.redotengine.Redot.yaml
140 lines (123 loc) · 5.1 KB
/
org.redotengine.Redot.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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
app-id: org.redotengine.Redot
runtime: org.freedesktop.Sdk
runtime-version: &runtime-version '24.08'
sdk: org.freedesktop.Sdk
add-extensions:
org.freedesktop.Sdk.Extension.openjdk17:
directory: jdk
version: *runtime-version
no-autodownload: false
autodelete: false
command: redot
build-options:
env:
# Will be appended to the version string displayed in the editor and command-line help
BUILD_NAME: flathub
finish-args:
- --share=ipc
- --socket=wayland
- --socket=x11
- --share=network
- --socket=pulseaudio
- --filesystem=host
- --filesystem=xdg-run/speech-dispatcher # For TTS via libspeechd
- --device=all
- --talk-name=org.freedesktop.Flatpak
modules:
- shared-modules/glu/glu-9.json
- name: jdk
buildsystem: simple
build-commands:
- mkdir -p /app/jdk
# This section is borrowed from:
# https://github.com/flathub/org.electronjs.Electron2.BaseApp/blob/c4635368f6c11ace8c1290525da4435d13d9173f/org.electronjs.Electron2.BaseApp.yml#L103
# https://github.com/flathub/net.lutris.Lutris/blob/76e94a0b80ef3ebc1b9a6b61f47d736f5ddd772c/net.lutris.Lutris.yml#L495
# https://gitlab.archlinux.org/archlinux/packaging/packages/speech-dispatcher/-/blob/414baaf78b5fe416df88a89ac18d2dd579a0c653/PKGBUILD
- name: libspeechd
config-opts:
- --disable-static
- --with-ibmtts=no
- --with-kali=no
- --with-baratinoo=no
- --with-voxin=no
- --without-flite
- --disable-python
no-make-install: true
post-install:
- cd ./src/api/c && make install
cleanup:
- '*.la'
- '*.a'
- /include
sources:
- type: archive
url: https://github.com/brailcom/speechd/releases/download/0.11.5/speech-dispatcher-0.11.5.tar.gz
sha512: d6d880bce0ae5bc2a5d519ef7740c689ae8b4b0bb658379762810e4beae3e465a429fbe19f7c490e89db0ea6a36aedd4b2287ac9251b90059b5c2cb3c0dd8a28
x-checker-data:
type: anitya
project-id: 13411
stable-only: true
url-template: https://github.com/brailcom/speechd/releases/download/$version/speech-dispatcher-$version.tar.gz
modules:
# dotconf provides utility functions to parse config files. It's only linked with the speech-dispatcher server,
# which we aren't building, but it needs to exist to get past the ./configure step anyway
- name: dotconf
sources:
- type: archive
url: https://github.com/williamh/dotconf/archive/refs/tags/v1.4.1.tar.gz
sha512: a6cada8621295b268d4b4fd85bc0c207e78324c9e84754ead2fdf6c1598ec8bdf626f9c24e66063d921c95d73e83b50ab50416a9b4c9a7a631392552ec46f55a
x-checker-data:
type: anitya
project-id: 13410
url-template: https://github.com/williamh/dotconf/archive/refs/tags/v$version.tar.gz
- type: script
commands:
- autoreconf -fiv
dest-filename: autogen.sh
cleanup:
- '*'
- name: scons
buildsystem: simple
cleanup: ['*']
sources:
- type: archive
sha256: cad573b329b6a5bc7e654b01f0231064acc979026af68a9e467ddb32bf2ee501
url: https://downloads.sourceforge.net/project/scons/scons/4.8.1/SCons-4.8.1.tar.gz
x-checker-data:
type: anitya
project-id: 4770
url-template: https://downloads.sourceforge.net/project/scons/scons/$version/SCons-$version.tar.gz
build-commands:
- pip3 install --no-index --no-build-isolation --prefix=/app .
- name: redot-tools
buildsystem: simple
sources:
# Source code tarball
- type: archive
sha256: e2eee23ede9efcdb09fa967c09ff48d12d0ff34e70eb3f30276275a79e6e8ad4
url: https://github.com/Redot-Engine/redot-engine/archive/refs/tags/redot-4.3-stable.tar.gz
# Binary tarball
- type: archive
sha256: 8bd4c52fa673bfb566c9ebc8da483f444c37625afaad48417f10ec3ee38d65fe
url: https://github.com/Redot-Engine/redot-engine/releases/download/redot-4.3-stable/Redot_v4.3-stable_linux.x86_64.zip
- type: script
dest-filename: redot.sh
commands:
- export APPDATA="$XDG_DATA_HOME"
- if [ -f /app/jdk/enable.sh ]; then source /app/jdk/enable.sh; fi
- /app/bin/redot-bin "$@"
- type: file
path: org.redotengine.Redot.metainfo.xml
build-commands:
- install -D -m755 Redot_*_linux.* /app/bin/redot-bin
- install -D -m755 redot.sh /app/bin/redot
- desktop-file-edit --set-icon=$FLATPAK_ID misc/dist/linux/$FLATPAK_ID.desktop
- install -Dm644 misc/dist/linux/$FLATPAK_ID.desktop /app/share/applications/$FLATPAK_ID.desktop
- install -Dm644 misc/dist/linux/$FLATPAK_ID.xml /app/share/mime/packages/$FLATPAK_ID.xml
- install -Dm644 $FLATPAK_ID.metainfo.xml /app/share/metainfo/$FLATPAK_ID.metainfo.xml
- install -Dm644 icon.svg /app/share/icons/hicolor/scalable/apps/$FLATPAK_ID.svg
- >
for size in {32,64,128,256}; do
rsvg-convert icon.svg -w "$size" -h "$size" -a -f png -o "$size.png";
install -Dm644 "$size.png" "/app/share/icons/hicolor/${size}x${size}/apps/$FLATPAK_ID.png";
done