{ "id": "io.github.pranavk_official.RustyLens", "runtime": "org.gnome.Platform", "runtime-version": "48", "sdk": "org.gnome.Sdk", "sdk-extensions": [ "org.freedesktop.Sdk.Extension.rust-stable", "org.freedesktop.Sdk.Extension.llvm18" ], "command": "rustylens", "finish-args": [ "--share=ipc", "--socket=fallback-x11", "--socket=wayland", "--device=dri" ], "build-options": { "append-path": "/usr/lib/sdk/rust-stable/bin:/usr/lib/sdk/llvm18/bin", "prepend-ld-library-path": "/usr/lib/sdk/llvm18/lib", "env": { "CARGO_HOME": "/run/build/rustylens/cargo", "RUST_BACKTRACE": "1", "PKG_CONFIG_PATH": "/app/lib/pkgconfig", "LIBCLANG_PATH": "/usr/lib/sdk/llvm18/lib" } }, "modules": [ { "name": "leptonica", "buildsystem": "cmake-ninja", "builddir": true, "config-opts": [ "-DCMAKE_BUILD_TYPE=Release", "-DBUILD_PROG=OFF", "-DBUILD_SHARED_LIBS=ON" ], "post-install": [ "cp /app/lib/pkgconfig/lept_Release.pc /app/lib/pkgconfig/lept.pc", "install -Dm644 ../LICENSE /app/share/licenses/io.github.pranavk_official.RustyLens/leptonica/LICENSE" ], "sources": [ { "type": "git", "url": "https://github.com/DanBloomberg/leptonica.git", "tag": "1.85.0", "commit": "63aef18d98432b8582a1565e241f7bd2ee9cc8d9" } ] }, { "name": "tesseract", "buildsystem": "cmake-ninja", "builddir": true, "config-opts": [ "-DCMAKE_BUILD_TYPE=Release", "-DBUILD_TRAINING_TOOLS=OFF", "-DBUILD_SHARED_LIBS=ON", "-DLeptonica_DIR=/app/lib/cmake/leptonica" ], "post-install": [ "install -Dm644 ../LICENSE /app/share/licenses/io.github.pranavk_official.RustyLens/tesseract/LICENSE" ], "sources": [ { "type": "git", "url": "https://github.com/tesseract-ocr/tesseract.git", "tag": "5.4.1", "commit": "e3f272b2c46a6a4f346f937b0df899cc462809ca", "disable-submodules": true } ] }, { "name": "tessdata", "buildsystem": "simple", "build-commands": [ "install -Dm644 *.traineddata -t /app/share/tessdata/", "install -Dm644 LICENSE /app/share/licenses/io.github.pranavk_official.RustyLens/tessdata/LICENSE" ], "sources": [ { "type": "git", "url": "https://github.com/tesseract-ocr/tessdata_fast.git", "tag": "4.1.0", "commit": "a8ba5063ab8013372a20e300da0c97ee46b92b07" } ] }, { "name": "rustylens", "buildsystem": "simple", "build-options": { "env": { "TESSDATA_PREFIX": "/app/share/tessdata", "LIBRARY_PATH": "/app/lib", "CARGO_HOME": "/run/build/rustylens/cargo" } }, "build-commands": [ "mkdir -p .cargo && cp cargo/config .cargo/config.toml", "cargo --offline build --release", "install -Dm755 target/release/rustylens /app/bin/rustylens", "install -Dm644 data/io.github.pranavk_official.RustyLens.desktop /app/share/applications/io.github.pranavk_official.RustyLens.desktop", "install -Dm644 data/io.github.pranavk_official.RustyLens.metainfo.xml /app/share/metainfo/io.github.pranavk_official.RustyLens.metainfo.xml", "install -Dm644 data/icons/hicolor/scalable/apps/io.github.pranavk_official.RustyLens.svg /app/share/icons/hicolor/scalable/apps/io.github.pranavk_official.RustyLens.svg", "install -Dm644 LICENSE /app/share/licenses/io.github.pranavk_official.RustyLens/rustylens/LICENSE" ], "sources": [ { "type": "git", "url": "https://github.com/Pranavk-official/rustylens.git", "tag": "v0.2.1", "commit": "3588cab8a5fdac9b02c9c51300e3b162cb145a7f" }, "cargo-sources.json" ] } ] }