diff --git a/recipes/phasius/build.sh b/recipes/phasius/build.sh index 5a793a00131c7..77140d141162d 100644 --- a/recipes/phasius/build.sh +++ b/recipes/phasius/build.sh @@ -1,11 +1,12 @@ -#!/bin/bash -euo +#!/bin/bash + +set -xeuo + 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" +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 . +C_INCLUDE_PATH=$PREFIX/include LIBRARY_PATH=$PREFIX/lib RUST_BACKTRACE=1 cargo install --verbose --root $PREFIX --path . --no-track diff --git a/recipes/phasius/meta.yaml b/recipes/phasius/meta.yaml index df5ed3ec03c3e..8fe83284a2ef4 100644 --- a/recipes/phasius/meta.yaml +++ b/recipes/phasius/meta.yaml @@ -1,26 +1,30 @@ -{% set version = "0.1.0" %} +{% set name = "phasius" %} +{% set version = "0.2.0" %} package: - name: phasius + name: {{ name }} version: {{ version }} build: - number: 2 + number: 0 skip: true # [osx] -# script: cargo install --path . --root ${PREFIX} + run_exports: + - {{ pin_subpackage(name, max_pin='x.x') }} source: - url: https://github.com/wdecoster/phasius/archive/v{{ version }}d.tar.gz - sha256: fc210f31c06f5437264cabff9be785e708a293f945b9e865c2bd964fdb61f9c7 + url: https://github.com/wdecoster/phasius/archive/refs/tags/v{{ version }}.tar.gz + sha256: a5b320303383b473661fccf7ec93f3b555b21d86d78d9cdaf5317cc9bcf3cb0e requirements: build: - - rust >=1.60 - autoconf - make + - {{ compiler('rust') }} - {{ compiler('cxx') }} - pkg-config - cmake + - cargo-bundle-licenses + - clangdev host: run: @@ -32,5 +36,11 @@ test: about: home: https://github.com/wdecoster/phasius license: MIT - license_file: LICENSE + license_file: + - LICENSE + - THIRDPARTY.yml summary: A rust tool to create phase-block maps from phased cram/bam files + +extra: + additional-platforms: + - linux-aarch64