forked from Subject38/flathub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
org.mfek.MFEKglif.yml
58 lines (58 loc) · 2.27 KB
/
org.mfek.MFEKglif.yml
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
app-id: org.mfek.MFEKglif
runtime: org.freedesktop.Platform
runtime-version: '23.08'
sdk: org.freedesktop.Sdk
cleanup:
- /sdk
build-options:
append-path: /app/sdk/rust-nightly/bin
env:
CARGO_HOME: /run/build/MFEKglif/cargo
SKIA_BINARIES_URL: "file:///run/build/MFEKglif/skia-binaries.tar.gz"
FORCE_SKIA_BINARIES_DOWNLOAD: "1"
finish-args:
- --share=ipc
- --socket=wayland
- --socket=fallback-x11
- --device=dri
- --filesystem=home
command: MFEKglif
modules:
- name: MFEKglif
buildsystem: simple
build-commands:
- cd rust && ./install.sh --prefix=/app/sdk/rust-nightly --without=rust-docs
--without=rust-docs-json-preview --disable-ldconfig --verbose
- cp ./resources/MFEKglif.desktop ./${FLATPAK_ID}.desktop
- cp ./resources/MFEKglif.png ./${FLATPAK_ID}.png
- desktop-file-edit ./${FLATPAK_ID}.desktop --set-key=Icon --set-value=org.mfek.MFEKglif.png
- cargo --offline fetch --manifest-path Cargo.toml --verbose
- cargo --offline build --release --features=sdl2-static
- install -Dm755 ./target/release/MFEKglif -t /app/bin/
- install -Dm644 ./${FLATPAK_ID}.metainfo.xml -t /app/share/metainfo/
- install -Dm644 ./${FLATPAK_ID}.desktop -t /app/share/applications/
- install -Dm644 ./${FLATPAK_ID}.png -t /app/share/icons/hicolor/512x512/apps/
sources:
- type: git
url: https://github.com/MFEK/glif.git
commit: 8764b3e40a6dc219f3dc7db1429c58dff9795840
- type: file
only-arches:
- x86_64
url: https://github.com/rust-skia/skia-binaries/releases/download/0.62.0/skia-binaries-8cf4841aefdb295709e9-x86_64-unknown-linux-gnu-gl.tar.gz
dest-filename: skia-binaries.tar.gz
sha256: e4806ae8566b1cc1e7692d9c5f0e0a32754a07591db6de884c107adea1922b7a
- type: file
path: ./org.mfek.MFEKglif.metainfo.xml
- generated-sources.json
- type: archive
only-arches:
- x86_64
dest: rust
url: https://static.rust-lang.org/dist/2023-11-27/rust-nightly-x86_64-unknown-linux-gnu.tar.xz
sha256: 129f753431110e57c2b6860248a68da440314ffc9ffd6e122eba56180da159da
x-checker-data:
type: rust
package: rust
channel: nightly
target: x86_64-unknown-linux-gnu