strawberry/conan/local_recipes_index/README.md

40 lines
1.1 KiB
Markdown

# Local Conan recipes index
This folder is reserved for private or organization-local Conan recipes that are
not vendored as Meson subprojects and are not consumed directly from
ConanCenter.
It now includes a seeded local YARA recipe for air-gapped or pinned builds:
- `yara/4.5.5`
- source tarball: `https://github.com/VirusTotal/yara/archive/refs/tags/v4.5.5.tar.gz`
Recommended layout follows Conan's `local_recipes_index` structure, for example:
```text
conan/local_recipes_index/
recipes/
yara/
config.yml
all/
conanfile.py
conandata.yml
```
This repository can be added as a local Conan remote. Restrict the allowed
packages so Conan only resolves the recipe(s) you expect from this path:
```bash
conan remote add strawberry-local-recipes ./conan/local_recipes_index --allowed-packages="yara/*"
```
Then Strawberry's root `conanfile.py` can consume a local YARA recipe with:
```bash
conan install . \
-of build/conan \
-o '&:with_yara=True' \
-c user.strawberry:yara_reference=yara/4.5.5
```
See `OFFLINE_INSTALL.md` for the full air-gapped workflow.