代码拉取完成,页面将自动刷新
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
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/";
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。