Skip to content

Commit

Permalink
phasius: Update to 0.2.0 and add linux-aarch64 build
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 40c93d1
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 12 deletions.
11 changes: 6 additions & 5 deletions recipes/phasius/build.sh
Original file line number Diff line number Diff line change
@@ -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
23 changes: 16 additions & 7 deletions recipes/phasius/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,26 +1,29 @@
{% set version = "0.1.0" %}
{% set name = "phasius" %}
{% set version = "0.2.0" %}

package:
name: phasius
name: {{ name }}
version: {{ version }}

build:
number: 2
number: 3
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
sha256: a5b320303383b473661fccf7ec93f3b555b21d86d78d9cdaf5317cc9bcf3cb0e

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

Expand All @@ -31,6 +34,12 @@ test:

about:
home: https://github.com/wdecoster/phasius
license: MIT
license:
- MIT
- THIRDPARTY.yml
license_file: LICENSE
summary: A rust tool to create phase-block maps from phased cram/bam files

extra:
additional-platforms:
- linux-aarch64

0 comments on commit 40c93d1

Please sign in to comment.