Skip to content

Commit

Permalink
Add a recipe for kyber (#52961)
Browse files Browse the repository at this point in the history
* Add a recipe for kyber

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>

* Fix the version. Copy/paste error

* Add clangdev as a build dependency

* Update summary

* Update to 0.6.0b and add license

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>

* update ti v0.6.0d

* Update the sha

---------

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
  • Loading branch information
martin-g authored Jan 3, 2025
1 parent 62f656f commit 9f03a95
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
12 changes: 12 additions & 0 deletions recipes/kyber/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env bash

set -xeuo

export CFLAGS="${CFLAGS} -fcommon"
export CXXFLAGS="${CFLAGS} -fcommon"

cargo-bundle-licenses --format yaml --output THIRDPARTY.yml

# build statically linked binary with Rust
export LD=$CC
C_INCLUDE_PATH=$PREFIX/include LIBRARY_PATH=$PREFIX/lib RUST_BACKTRACE=1 cargo install --verbose --root $PREFIX --path . --no-track
46 changes: 46 additions & 0 deletions recipes/kyber/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{% set name = "kyber" %}
{% set version = "0.6.0d" %}

package:
name: {{ name }}
version: {{ version }}

build:
number: 0
run_exports:
- {{ pin_subpackage(name, max_pin='x.x') }}

source:
url: https://github.com/wdecoster/kyber/archive/refs/tags/v{{ version }}.tar.gz
sha256: c5e3b59e486213329f485d339cdf18753ccca6e53c01cb3ddc5ad000cbd50d69

requirements:
build:
- autoconf
- make
- {{ compiler('cxx') }}
- {{ compiler('rust') }}
- pkg-config
- cmake
- cargo-bundle-licenses
- clangdev
host:
run:

test:
commands:
- kyber --help

about:
home: https://github.com/wdecoster/kyber
license: MIT
license_file:
- LICENSE
- THIRDPARTY.yml
summary: Tool to create a length-accuracy heatmap from a cram or bam file
dev_url: https://github.com/wdecoster/kyber

extra:
additional-platforms:
- linux-aarch64
- osx-arm64

0 comments on commit 9f03a95

Please sign in to comment.