84 lines
3.0 KiB
YAML
84 lines
3.0 KiB
YAML
id: space.midnightthoughts.matrix_client
|
|
runtime: org.freedesktop.Platform
|
|
runtime-version: "22.08"
|
|
sdk: org.freedesktop.Sdk
|
|
sdk-extensions:
|
|
- org.freedesktop.Sdk.Extension.rust-stable
|
|
command: matrix-client
|
|
finish-args:
|
|
- --share=ipc
|
|
- --socket=fallback-x11
|
|
- --socket=wayland
|
|
- --device=dri
|
|
- --share=network
|
|
- --filesystem=home
|
|
- --env=G_MESSAGES_DEBUG=none
|
|
- --env=RUST_BACKTRACE=1
|
|
build-options:
|
|
append-path: /usr/lib/sdk/rust-stable/bin
|
|
modules:
|
|
- name: py3cairo
|
|
buildsystem: simple
|
|
build-commands:
|
|
- python3 setup.py install --prefix=/app --root=/
|
|
sources:
|
|
- type: archive
|
|
url: https://github.com/pygobject/pycairo/releases/download/v1.21.0/pycairo-1.21.0.tar.gz
|
|
sha256: 251907f18a552df938aa3386657ff4b5a4937dde70e11aa042bc297957f4b74b
|
|
- name: python3-gi
|
|
buildsystem: simple
|
|
build-commands:
|
|
- python3 setup.py install --prefix=/app --root=/
|
|
sources:
|
|
- type: archive
|
|
url: https://github.com/GNOME/pygobject/archive/refs/tags/3.42.2.tar.gz
|
|
sha256: 56e6833f875bfe55409c780b9c87a9fc426c1cd55b3c65836de9d384d206201f
|
|
- name: graphene
|
|
buildsystem: meson
|
|
sources:
|
|
- type: archive
|
|
url: https://github.com/ebassi/graphene/archive/refs/tags/1.10.8.tar.gz
|
|
sha256: 922dc109d2dc5dc56617a29bd716c79dd84db31721a8493a13a5f79109a4a4ed
|
|
- name: gtk4
|
|
buildsystem: meson
|
|
sources:
|
|
- type: archive
|
|
url: https://download.gnome.org/sources/gtk/4.8/gtk-4.8.1.tar.xz
|
|
sha256: 5ce8d8de98a23bd0c8eca1a61094e1c009b5f009dcbd60b45e990a8db1b742fd
|
|
- name: vala
|
|
buildsystem: autotools
|
|
build-options:
|
|
config-opts:
|
|
- --enable-unversioned
|
|
- --disable-valadoc
|
|
make-args:
|
|
- bootstrap
|
|
sources:
|
|
- type: archive
|
|
url: https://download.gnome.org/sources/vala/0.56/vala-0.56.3.tar.xz
|
|
sha256: e1066221bf7b89cb1fa7327a3888645cb33b604de3bf45aa81132fd040b699bf
|
|
- name: libadwaita
|
|
buildsystem: meson
|
|
sources:
|
|
- type: archive
|
|
url: https://download.gnome.org/sources/libadwaita/1.2/libadwaita-1.2.0.tar.xz
|
|
sha256: 322f3e1be39ba67981d9fe7228a85818eccaa2ed0aa42bcafe263af881c6460c
|
|
- name: matrix-client
|
|
buildsystem: simple
|
|
build-options:
|
|
env:
|
|
CARGO_HOME: /run/build/matrix-client/cargo
|
|
build-commands:
|
|
- cargo --offline fetch --manifest-path Cargo.toml --verbose
|
|
- cargo --offline build --release --verbose
|
|
- install -Dm644 ${FLATPAK_ID}.gschema.xml -t /app/share/glib-2.0/schemas/
|
|
- glib-compile-schemas /app/share/glib-2.0/schemas/
|
|
- install -Dm755 target/release/matrix-client -t /app/bin/
|
|
- install -Dm644 build-aux/data/${FLATPAK_ID}.metainfo.xml -t /app/share/metainfo/
|
|
- install -Dm644 build-aux/data/${FLATPAK_ID}.desktop -t /app/share/applications/
|
|
#- install -Dm644 build-aux/data/${FLATPAK_ID}.svg -t /app/share/icons/hicolor/scalable/apps/
|
|
sources:
|
|
- type: dir
|
|
path: ../
|
|
- generated-sources.json
|