-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgg.tesseract.Tesseract.yaml
37 lines (36 loc) · 1.29 KB
/
gg.tesseract.Tesseract.yaml
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
app-id: gg.tesseract.Tesseract
runtime: org.freedesktop.Platform
runtime-version: '24.08'
sdk: org.freedesktop.Sdk
command: tesseract
finish-args:
- --socket=pulseaudio
- --socket=wayland
- --socket=fallback-x11
- --share=ipc
- --share=network
- --device=dri
- --persist=.tesseract
modules:
- name: tesseract
buildsystem: autotools
no-autogen: true
subdir: src
post-install:
- mkdir -p ${FLATPAK_DEST}/lib/tesseract
- cp -a ../media/ ../config/ ../bin_unix/ ${FLATPAK_DEST}/lib/tesseract
- install -Dm755 ../tesseract_unix ${FLATPAK_DEST}/bin/tesseract
- install -Dm644 ../media/interface/cube.png ${FLATPAK_DEST}/share/icons/hicolor/256x256/apps/${FLATPAK_ID}.png
- install -Dm644 ../gg.tesseract.Tesseract.desktop ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop
- install -Dm644 ../gg.tesseract.Tesseract.metainfo.xml ${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.metainfo.xml
sources:
- type: svn
url: svn://svn.tuxfamily.org/svnroot/tesseract/main
revision: 2553
- type: shell
commands:
- sed -i 's#TESS_DATA=.#TESS_DATA=/app/lib/tesseract/#g' tesseract_unix
- type: file
path: gg.tesseract.Tesseract.desktop
- type: file
path: gg.tesseract.Tesseract.metainfo.xml