blob: aa4bb8b5d335b4f28a481493e2d52e79c0c45edb (
plain)
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
|
app-id: org.metamuffin.hurrycurry.client
runtime: org.freedesktop.Platform
runtime-version: "23.08"
sdk: org.freedesktop.Sdk
command: hurrycurry
finish-args:
- --share=ipc
- --socket=x11
- --socket=pulseaudio
- --device=dri
- --share=network
build-options:
arch:
x86_64:
env:
# Only enable link-time optimization when targeting x86_64
# (causes issues on other architectures)
SCONS_FLAGS_EXTRA: use_lto=yes
env:
BUILD_NAME: hurrycurry
modules:
- shared-modules/glu/glu-9.json
- name: scons
buildsystem: simple
cleanup: ["*"]
sources:
- type: archive
sha256: 6e928fc97984e719814270f6863f2183b3b72180b0162a5ed09db68c9994100c
url: https://downloads.sourceforge.net/project/scons/scons/4.8.0/SCons-4.8.0.tar.gz
build-commands:
- python3 -m pip install --no-index --no-build-isolation --prefix=/app .
- name: godot
buildsystem: simple
sources:
- type: archive
sha256: 751e55bfad8e04b846f9cf7b6eb80e058986a2cb1b103fc0fe6a4d8526a20e56
url: https://downloads.tuxfamily.org/godotengine/4.3/godot-4.3-stable.tar.xz
- type: file
path: custom.py
build-commands:
- python3 /app/bin/scons $SCONS_FLAGS_EXTRA profile=custom.py target=editor -j "$FLATPAK_BUILDER_N_JOBS"
- python3 /app/bin/scons $SCONS_FLAGS_EXTRA profile=custom.py target=template_release -j "$FLATPAK_BUILDER_N_JOBS"
- install -Dm755 bin/godot.linuxbsd.template_release.* /app/bin/godot
- install -Dm755 bin/godot.linuxbsd.editor.* /app/bin/godot-editor
- name: hurrycurry
buildsystem: simple
sources:
- type: archive
sha256: 847888ff40ceaa59179663d1afb3cc9fefe36885189b9b536248bcb625941011
url: https://codeberg.org/hurrycurry/hurrycurry/archive/v1.5.0.tar.gz
- type: file
sha256: cddc72a740395eaa760c2eb8e757a3f14ec377a286f257df542bd62614c6583a
url: https://s.metamuffin.org/static/hurrycurry-1.2/book.webp.tar.zst
- type: archive
sha256: 36e6afd8fc4cac7f76f3f1fb0cdcbf963f3d0a41abaa4d3caf4f3a964c1661ca
url: https://codeberg.org/hurrycurry/hurrycurry-dist-extra/archive/v1.4.0.tar.gz
build-commands:
- tar -xf book.webp.tar.zst -C client/menu/book
- install -dD /app/share/hurrycurry
- godot-editor --headless --export-pack wasm32-unknown-unknown /app/share/hurrycurry/client.pck client/project.godot
- rm /app/bin/godot-editor
- install -Dm755 hurrycurry /app/bin/hurrycurry
- install -Dm644 org.metamuffin.hurrycurry.client.desktop /app/share/applications/org.metamuffin.hurrycurry.client.desktop
- install -Dm644 org.metamuffin.hurrycurry.client.metainfo.xml /app/share/metainfo/org.metamuffin.hurrycurry.client.metainfo.xml
- >
for size in {32,64,128,256,512}; do
ffmpeg -i client/icon.png -vf scale=${size}:${size} "$size.png"
install -Dm644 "$size.png" "/app/share/icons/hicolor/${size}x${size}/apps/org.metamuffin.hurrycurry.client.png"
done
|