diff --git a/recipes/rust-gtars/build.sh b/recipes/rust-gtars/build.sh new file mode 100644 index 0000000000000..ca9b4236e6326 --- /dev/null +++ b/recipes/rust-gtars/build.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +set -xeuo + +if [ "$(uname)" == "Darwin" ]; then + export HOME=`pwd` +fi + +# build statically linked binary with Rust +RUST_BACKTRACE=1 +cargo install --no-track --verbose --root "${PREFIX}" --path ./gtars \ No newline at end of file diff --git a/recipes/rust-gtars/meta.yaml b/recipes/rust-gtars/meta.yaml new file mode 100644 index 0000000000000..88a89481d6288 --- /dev/null +++ b/recipes/rust-gtars/meta.yaml @@ -0,0 +1,42 @@ +{% set version = "0.2.0" %} +{% set name = "rust-gtars" %} + +package: + name: {{ name }} + version: {{ version }} + +source: + url: https://github.com/databio/gtars/archive/v{{ version }}.tar.gz + sha256: 21e3586bd7214e2e515c0b7455e36f1f4ff59e8b4ff07182dfb535a1c509ecf7 + +build: + number: 0 + run_exports: + - {{ pin_subpackage(name, max_pin="x.x") }} + +requirements: + build: + - {{ compiler('rust') }} + - cargo-bundle-licenses + # - {{ compiler('c') }} add these C/C++ compilers if needed + # - {{ compiler('cxx') }} + +test: + commands: + - gtars --version + +about: + home: https://github.com/databio/gtars + doc_url: "https://docs.rs/crate/gtars/{{ version }}" + license: BSD-2-Clause # please use https://spdx.org identifiers + license_file: + - LICENSE # the license file for your package + summary: Performance-critical tools to manipulate, analyze, and process genomic interval data. + +extra: + recipe-maintainers: + - donaldcampbelljr # your GitHub username + - nleroy917 + - khoroshevskyi + additional-platforms: + - osx-arm64 \ No newline at end of file