diff --git a/recipes/devider/build.sh b/recipes/devider/build.sh index 48c6067ac685bf..e3d6bbba51363a 100644 --- a/recipes/devider/build.sh +++ b/recipes/devider/build.sh @@ -7,5 +7,15 @@ export CARGO_HOME="$(pwd)/.cargo" # build statically linked binary with Rust cargo-bundle-licenses --format yaml --output THIRDPARTY.yml -RUST_BACKTRACE=1 cargo install --verbose --locked --no-track --root $PREFIX --path . + +case $(uname -m) in + aarch64 | arm64) + FEATURES="--features neon --no-default-features" + ;; + *) + FEATURES="" + ;; +esac + +RUST_BACKTRACE=1 cargo install --verbose --locked --no-track --root $PREFIX --path . ${FEATURES} cp scripts/* $PREFIX/bin diff --git a/recipes/devider/devider-aarch64.patch b/recipes/devider/devider-aarch64.patch new file mode 100644 index 00000000000000..6c2478c0cccfab --- /dev/null +++ b/recipes/devider/devider-aarch64.patch @@ -0,0 +1,14 @@ +--- Cargo.toml.orig 2024-10-14 10:59:48.140000000 +0000 ++++ Cargo.toml 2024-10-14 11:03:33.120000000 +0000 +@@ -13,9 +13,9 @@ + rayon="1.7" + rand="0.8" + rand_core="0.6" +-rust-htslib= { version = "0.44", default-features = false } ++rust-htslib= { version = "0.47", default-features = false } + clap = { version = "=4.2.0", features = ["derive"] } +-block-aligner = { version = "0.4", default-features = false } ++block-aligner = { version = "0.5", default-features = false } + debruijn = "0.3" + simple_logger="4" + log="0.4" diff --git a/recipes/devider/meta.yaml b/recipes/devider/meta.yaml index 8fbea600272085..f6095c7ba09444 100644 --- a/recipes/devider/meta.yaml +++ b/recipes/devider/meta.yaml @@ -7,6 +7,8 @@ package: source: url: https://github.com/bluenote-1577/devider/archive/v{{ version }}.tar.gz sha256: e2c5e4a2faa51dbfd0ad4cb867d0dc25ea4012e83ec8fea27c1624592fce7dce + patches: + - devider-aarch64.patch # [aarch64] build: number: 1