Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a recipe for kyber #52961

Merged
merged 7 commits into from
Jan 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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