forked from RajSolai/TextSnatcher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gnomeapp.yml
134 lines (124 loc) · 5.8 KB
/
gnomeapp.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
app-id: com.github.rajsolai.textsnatcher
runtime: org.gnome.Platform
runtime-version: "41"
base: io.elementary.BaseApp
base-version: "juno-21.08"
sdk: org.gnome.Sdk
command: com.github.rajsolai.textsnatcher
finish-args:
- "--share=ipc"
- "--socket=fallback-x11"
- "--socket=wayland"
- "--device=dri"
- "--system-talk-name=org.freedesktop.Accounts"
modules:
- name: libbsd
sources:
- type: archive
url: https://libbsd.freedesktop.org/releases/libbsd-0.9.1.tar.xz
sha256: 56d835742327d69faccd16955a60b6dcf30684a8da518c4eca0ac713b9e0a7a4
- name: imlib2
sources:
- type: git
url: https://github.com/kkoudev/imlib2.git
commit: 0f6782427dd4f49a4d1da03bec133e6a27f994a3
- name: scrot
sources:
- type: archive
url: https://github.com/resurrecting-open-source-projects/scrot/archive/refs/tags/1.7.tar.gz
sha256: e4ff764f93ea98018d46192c35bd34eeb577040ac6e217aa0d83b2a63d88f66b
- name: libportal
buildsystem: meson
builddir: true
config-opts:
- "-Dbackends=gtk3"
- "-Ddocs=false"
sources:
- type: archive
url: https://github.com/flatpak/libportal/releases/download/0.5/libportal-0.5.tar.xz
sha256: d8c8cb18a34e5eeb26a39c94044c955995b01de0e139caac5e18c076cf821b3b
- name: com.github.rajsolai.textsnatcher
buildsystem: meson
sources:
- type: dir
#url: https://github.com/RajSolai/TextSnatcher/archive/refs/tags/v1.0.1.tar.gz
#sha256: 29d39bcf4b0ed0b16f932cfd5553a280907df75d8332979f6504e7946ed5c356
path: .
- name: leptonica
rm-configure: true
config-opts:
- --disable-static
sources:
- type: archive
url: https://github.com/DanBloomberg/leptonica/releases/download/1.79.0/leptonica-1.79.0.tar.gz
sha256: 045966c9c5d60ebded314a9931007a56d9d2f7a6ac39cb5cc077c816f62300d8
- name: tesseract
config-opts:
- --disable-static
- --disable-graphics
- --enable-legacy
sources:
- type: archive
url: https://github.com/tesseract-ocr/tesseract/archive/4.1.1.tar.gz
sha256: 2a66ff0d8595bff8f04032165e6c936389b1e5727c3ce5a27b3e059d218db1cb
- type: file
url: https://github.com/tesseract-ocr/tessdata_best/raw/main/eng.traineddata
sha256: 8280aed0782fe27257a68ea10fe7ef324ca0f8d85bd2fd145d1c2b560bcb66ba
dest: traineddata
- type: file
url: https://github.com/tesseract-ocr/tessdata_best/raw/main/jpn.traineddata
sha256: 36bdf9ac823f5911e624c30d0553e890b8abc7c31a65b3ef14da943658c40b79
dest: traineddata
- type: file
url: https://github.com/tesseract-ocr/tessdata_best/raw/main/rus.traineddata
sha256: b617eb6830ffabaaa795dd87ea7fd251adfe9cf0efe05eb9a2e8128b7728d6b6
dest: traineddata
- type: file
url: https://github.com/tesseract-ocr/tessdata_best/raw/main/fra.traineddata
sha256: 907743d98915c91a3906dfbf6e48b97598346698fe53aaa797e1a064ffcac913
dest: traineddata
- type: file
url: https://github.com/tesseract-ocr/tessdata_best/raw/main/ara.traineddata
sha256: ab9d157d8e38ca00e7e39c7d5363a5239e053f5b0dbdb3167dde9d8124335896
dest: traineddata
- type: file
url: https://github.com/tesseract-ocr/tessdata_best/raw/main/chi_sim.traineddata
sha256: 4fef2d1306c8e87616d4d3e4c6c67faf5d44be3342290cf8f2f0f6e3aa7e735b
dest: traineddata
- type: file
url: https://github.com/tesseract-ocr/tessdata_best/raw/main/spa.traineddata
sha256: e2c1ffdad8b30f26c45d4017a9183d3a7f9aa69e59918be4f88b126fac99ab2c
dest: traineddata
- type: file
url: https://github.com/tesseract-ocr/tessdata_best/raw/main/tur.traineddata
sha256: e0c3338dc17503dc7d335a507c9ae01b2b46cfd07561171e1e1ac55d85e8e438
dest: traineddata
- type: file
url: https://github.com/tesseract-ocr/tessdata_best/raw/main/nld.traineddata
sha256: 92e7a1ad4bf8082e268de57c7823316ec024935702c6ed2a1e473b3a071aa733
dest: traineddata
- type: file
url: https://github.com/tesseract-ocr/tessdata_best/raw/main/deu.traineddata
sha256: 8407331d6aa0229dc927685c01a7938fc5a641d1a9524f74838cdac599f0d06e
dest: traineddata
- type: file
url: https://github.com/tesseract-ocr/tessdata_best/raw/main/ind.traineddata
sha256: 1f6596041ffb4cd5094e5f98764db43cfde04edb8f02b988f90ebc1353ac73b8
dest: traineddata
- type: file
url: https://github.com/tesseract-ocr/tessdata_best/raw/main/por.traineddata
sha256: 711de9dbb8052067bd42f16b9119967f30bada80d57e2ef24f65d09f531adb04
dest: traineddata
post-install:
- install -p -D -m 0644 "traineddata"/deu.traineddata -t "${FLATPAK_DEST}/share/tessdata/";
- install -p -D -m 0644 "traineddata"/nld.traineddata -t "${FLATPAK_DEST}/share/tessdata/";
- install -p -D -m 0644 "traineddata"/tur.traineddata -t "${FLATPAK_DEST}/share/tessdata/";
- install -p -D -m 0644 "traineddata"/eng.traineddata -t "${FLATPAK_DEST}/share/tessdata/";
- install -p -D -m 0644 "traineddata"/jpn.traineddata -t "${FLATPAK_DEST}/share/tessdata/";
- install -p -D -m 0644 "traineddata"/rus.traineddata -t "${FLATPAK_DEST}/share/tessdata/";
- install -p -D -m 0644 "traineddata"/fra.traineddata -t "${FLATPAK_DEST}/share/tessdata/";
- install -p -D -m 0644 "traineddata"/ara.traineddata -t "${FLATPAK_DEST}/share/tessdata/";
- install -p -D -m 0644 "traineddata"/chi_sim.traineddata -t "${FLATPAK_DEST}/share/tessdata/";
- install -p -D -m 0644 "traineddata"/spa.traineddata -t "${FLATPAK_DEST}/share/tessdata/";
- install -p -D -m 0644 "traineddata"/ind.traineddata -t "${FLATPAK_DEST}/share/tessdata/";
- install -p -D -m 0644 "traineddata"/por.traineddata -t "${FLATPAK_DEST}/share/tessdata/";