-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathio.github.limads.Drafts.Devel.json
89 lines (89 loc) · 2.46 KB
/
io.github.limads.Drafts.Devel.json
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
{
"app-id": "io.github.limads.Drafts",
"runtime": "org.gnome.Platform",
"runtime-version": "44",
"sdk": "org.gnome.Sdk",
"sdk-extensions": [
"org.freedesktop.Sdk.Extension.rust-nightly"
],
"command": "drafts",
"finish-args": [
"--share=ipc",
"--socket=wayland",
"--socket=fallback-x11",
"--device=dri",
"--filesystem=home"
],
"build-options": {
"append-path": "/usr/lib/sdk/rust-stable/bin"
},
"cleanup": [
"/include",
"/lib/pkgconfig",
"/man",
"/share/doc",
"/share/gtk-doc",
"/share/man",
"/share/pkgconfig",
"*.la",
"*.a"
],
"modules": [
{
"name": "poppler",
"buildsystem": "cmake-ninja",
"config-opts": [
"-DENABLE_BOOST=OFF",
"-DENABLE_LIBOPENJPEG=none",
"-DBUILD_GTK_TESTS=OFF",
"-DENABLE_QT5=OFF",
"-DENABLE_QT6=OFF",
"-DBUILD_QT5_TESTS=OFF",
"-DBUILD_QT6_TESTS=OFF",
"-DBUILD_MANUAL_TESTS=OFF",
"-DENABLE_UTILS=OFF",
"-DENABLE_CPP=OFF",
"-DBUILD_CPP_TESTS=OFF",
"-DENABLE_GOBJECT_INTROSPECTION=OFF",
"-DENABLE_LIBCURL=OFF",
"-DENABLE_ZLIB=OFF"
],
"sources": [
{
"type": "archive",
"url": "https://poppler.freedesktop.org/poppler-22.06.0.tar.xz",
"sha256": "a0f9aaa3918bad781039fc307a635652a14d1b391cd559b66edec4bedba3c5d7"
}
]
},
{
"name": "Drafts",
"builddir": true,
"buildsystem": "simple",
"build-options": {
"env": {
"ICON_SRC": "data/icons/hicolor",
"ICON_DST": "/app/share/icons/hicolor",
"CARGO_TARGET_PATH": "/run/build/Drafts/target/release"
},
"build-args": [ "--share=network" ]
},
"build-commands": [
"cargo build --release"
],
"sources": [
{
"type": "git",
"url": "https://github.com/limads/drafts.git"
}
],
"post-install": [
"install -D ${ICON_SRC}/scalable/apps/${FLATPAK_ID}.svg ${ICON_DST}/scalable/apps/${FLATPAK_ID}.svg",
"install -D ${ICON_SRC}/symbolic/apps/${FLATPAK_ID}-symbolic.svg ${ICON_DST}/symbolic/apps/${FLATPAK_ID}-symbolic.svg",
"install -Dm644 data/${FLATPAK_ID}.desktop -t ${FLATPAK_DEST}/share/applications",
"install -Dm644 data/${FLATPAK_ID}.appdata.xml -t ${FLATPAK_DEST}/share/metainfo",
"install -Dm755 ${CARGO_TARGET_PATH}/drafts -t ${FLATPAK_DEST}/bin"
]
}
]
}