Skip to content

Commit

Permalink
Add a recipe for kyber
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
  • Loading branch information
martin-g committed Dec 23, 2024
1 parent 907bd9d commit b55ea9a
Show file tree
Hide file tree
Showing 2 changed files with 56 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
44 changes: 44 additions & 0 deletions recipes/kyber/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{% set name = "kyber" %}
{% set version = "0.1.0" %}

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: 03cc530aae9ff337af3495f60a6f73ed4219eff70737e6115c9083f25fb2e7f0

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

test:
commands:
- kyber --help

about:
home: https://github.com/wdecoster/kyber
license: TODO
license_file:
- THIRDPARTY.yml
summary: Tool to quickly make a minimalistic 600x600 pixels heatmap image of read length (log-transformed) and read accuracy.
dev_url: https://github.com/wdecoster/kyber

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

0 comments on commit b55ea9a

Please sign in to comment.