diff --git a/recipes/barcodex-rs/build.sh b/recipes/barcodex-rs/build.sh new file mode 100644 index 0000000000000..5c4efc2ca83d4 --- /dev/null +++ b/recipes/barcodex-rs/build.sh @@ -0,0 +1,10 @@ +#!/bin/bash -euo +export CFLAGS="${CFLAGS} -fcommon" +export CXXFLAGS="${CFLAGS} -fcommon" + +# Add workaround for SSH-based Git connections from Rust/cargo. See https://github.com/rust-lang/cargo/issues/2078 for details. +# We set CARGO_HOME because we don't pass on HOME to conda-build, thus rendering the default "${HOME}/.cargo" defunct. +export CARGO_NET_GIT_FETCH_WITH_CLI=true CARGO_HOME="$(pwd)/.cargo" + +# build statically linked binary with Rust +RUST_BACKTRACE=1 cargo install --verbose --root $PREFIX --path . \ No newline at end of file diff --git a/recipes/barcodex-rs/meta.yaml b/recipes/barcodex-rs/meta.yaml new file mode 100644 index 0000000000000..f97de9f1da215 --- /dev/null +++ b/recipes/barcodex-rs/meta.yaml @@ -0,0 +1,37 @@ +{% set version = "0.1.3" %} +{% set sha256 = "6271a95289c6d987d652983db071b36d41d49ab14ad9afe7a2f0a52a9f55191d" %} + +package: + name: barcodex-rs + version: {{ version }} + +source: + url: https://github.com/MatthiasZepper/barcodex-rs/archive/refs/tags/v{{ version }}.tar.gz + sha256: {{ sha256 }} + +build: + number: 0 + +requirements: + build: + - rust >=1.40 + - cmake + - make + - autoconf + - {{ compiler('cxx') }} + - pkg-config + - zlib + host: + - zlib + run: + + +test: + commands: + - barcodex-rs --help + +about: + home: https://github.com/oicr-gsi/barcodex-rs + license: MIT + license_family: MIT + summary: Extract Unique Molecular Identifiers (UMIs) from single or paired-end read sequences.