OXYGENHUB
# dab94366a4f0 oxygen / packaging / haikuports / README.md
1.1 KiB · Markdown · last changed A haikuports recipe for oxy, and the script that writes it for each release (closes #156) 8 days ago renderedsource blame history raw
1
# oxy on HaikuDepot
2
3
`dev-vcs/oxy/oxy-VERSION.recipe` is a [haikuports]https://github.com/haikuports/haikuports
4
recipe for oxy (oxygen#156). It builds the release's source archive from
5
OxygenHub offline, with every crates.io crate from `Cargo.lock` as a source of
6
its own, as haikuports' other Rust recipes (ripgrep) do.
7
8
For a new release:
9
10
```sh
11
curl -o oxygen-vX.Y.Z.tar.zst 'https://oxygenhub.io/andymccall/oxygen/archive?ref=vX.Y.Z&format=tar.zst'
12
tar --zstd -xf oxygen-vX.Y.Z.tar.zst
13
python3 packaging/haikuports/make-recipe.py oxygen-vX.Y.Z/Cargo.lock X.Y.Z oxygen-vX.Y.Z.tar.zst \
14
  > packaging/haikuports/dev-vcs/oxy/oxy-X.Y.Z.recipe
15
```
16
17
Test it in a Haiku R1/beta6 machine with haikuports checked out and
18
`haikuporter` installed: copy the recipe to `haikuports/dev-vcs/oxy/` and run
19
`haikuporter --no-source-packages -j1 -y oxy`. The 0.8.0 recipe built
20
`oxy-0.8.0-1-x86_64.hpkg` that way (2026-10-28), whose `oxy --version` says
21
`oxy 0.8.0 (v0.8.0)`.
22
23
Haiku needs the system's zstd (`ZSTD_SYS_USE_PKG_CONFIG=1`: the bundled
24
zstd's hidden symbols break the link), which the recipe sets. Submitting the
25
recipe to haikuports is a pull request there.