-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdev.neovide.neovide.yml
68 lines (67 loc) · 2.52 KB
/
dev.neovide.neovide.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
59
60
61
62
63
64
65
66
67
id: dev.neovide.neovide
command: neovide-wrapper
runtime: org.freedesktop.Sdk
runtime-version: '24.08'
sdk: org.freedesktop.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.golang
- org.freedesktop.Sdk.Extension.rust-stable
finish-args:
- --socket=wayland
- --socket=fallback-x11
- --share=ipc
- --device=dri
- --talk-name=org.freedesktop.Flatpak
- --filesystem=host
- --share=network
- --env=TERM=xterm-256color
modules:
- modules/host-spawn/host-spawn.yml
- modules/fd/fd.yml
- modules/ripgrep/ripgrep.yml
- modules/neovim/neovim.yml
- modules/wrapper/wrapper.yml
- name: neovide
sources:
- modules/neovide/neovide-cargo-sources.yml
- type: file
path: modules/neovide/dev.neovide.neovide.metainfo.xml
- type: git
url: https://github.com/neovide/neovide
tag: '0.13.3'
- type: file
only-arches:
- x86_64
url: https://github.com/rust-skia/skia-binaries/releases/download/0.75.0/skia-binaries-e7e538647512cab844c3-x86_64-unknown-linux-gnu-gl-textlayout.tar.gz
dest-filename: skia-binaries.tar.gz
sha256: 58381c2fc492cc8aff4df6462f2bb5c438cc6c73c5b481ad0d855f54d4015bea
- type: file
only-arches:
- aarch64
url: https://github.com/rust-skia/skia-binaries/releases/download/0.75.0/skia-binaries-e7e538647512cab844c3-aarch64-unknown-linux-gnu-gl-textlayout.tar.gz
dest-filename: skia-binaries.tar.gz
sha256: 24ebe148b1d6bf570b5644a90f37aa5348bba1af2dfa731bfbbf6a86f2e18a8e
build-options:
append-path: /usr/lib/sdk/rust-stable/bin
env:
CARGO_HOME: /run/build/neovide/cargo
SKIA_BINARIES_URL: "file:///run/build/neovide/skia-binaries.tar.gz"
FORCE_SKIA_BINARIES_DOWNLOAD: "1"
buildsystem: simple
build-commands:
- cargo --frozen fetch
- cargo --frozen build --release
- install -Dm755 target/release/neovide -t /app/bin
- install -Dm644 dev.neovide.neovide.metainfo.xml /app/share/metainfo/${FLATPAK_ID}.metainfo.xml
- install -Dm644 assets/neovide.svg /app/share/icons/hicolor/scalable/apps/${FLATPAK_ID}.svg
- install -Dm644 assets/neovide.desktop /app/share/applications/${FLATPAK_ID}.desktop
- desktop-file-edit --set-icon="${FLATPAK_ID}" /app/share/applications/${FLATPAK_ID}.desktop
- desktop-file-edit --set-key=Exec --set-value=neovide-wrapper /app/share/applications/${FLATPAK_ID}.desktop
cleanup:
- /bin/xclip-*file
- /lib/pkgconfig
- /lib/cmake
- /share/man
- /include
- '*.la'
- '*.a'