Skip to content

Commit 519a8ff

Browse files
committed
fix: add libclang for Flathub build and OCR models for COPR packaging
Add org.freedesktop.Sdk.Extension.llvm20 to Flatpak manifest with LIBCLANG_PATH so bindgen can find libclang during ocr-rs compilation. Add /usr/lib/clippy/ to COPR spec %files for OCR model assets.
1 parent 1119abe commit 519a8ff

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

.github/copr/clippy.spec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,6 @@ rpm2cpio %{SOURCE0} | cpio -idmv -D %{buildroot}
2121

2222
%files
2323
%{_bindir}/clippy
24+
/usr/lib/clippy/
2425
%{_datadir}/applications/clippy.desktop
2526
%{_datadir}/icons/hicolor/*/apps/clippy.png

.github/flathub/io.github._0_don.clippy.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ sdk: org.gnome.Sdk
55
sdk-extensions:
66
- org.freedesktop.Sdk.Extension.rust-stable
77
- org.freedesktop.Sdk.Extension.node20
8+
- org.freedesktop.Sdk.Extension.llvm20
89
command: clippy
910
rename-icon: clippy
1011
finish-args:
@@ -16,7 +17,8 @@ finish-args:
1617
- --talk-name=com.canonical.AppMenu.Registrar
1718

1819
build-options:
19-
append-path: /usr/lib/sdk/node20/bin:/usr/lib/sdk/rust-stable/bin
20+
append-path: /usr/lib/sdk/node20/bin:/usr/lib/sdk/rust-stable/bin:/usr/lib/sdk/llvm20/bin
21+
prepend-ld-library-path: /usr/lib/sdk/llvm20/lib
2022

2123
modules:
2224
- shared-modules/libappindicator/libappindicator-gtk3-12.10.json
@@ -27,6 +29,7 @@ modules:
2729
env:
2830
CARGO_HOME: /run/build/clippy/cargo
2931
CARGO_NET_OFFLINE: "true"
32+
LIBCLANG_PATH: /usr/lib/sdk/llvm20/lib
3033
build-commands:
3134
- npm ci --offline --legacy-peer-deps --cache=$PWD/flatpak-node/npm-cache
3235
- cargo --offline fetch --manifest-path src-tauri/Cargo.toml

0 commit comments

Comments
 (0)