diff --git a/recipes/bustools/build.sh b/recipes/bustools/build.sh index 93f63cbb3280d..cbd3af5c9a2da 100644 --- a/recipes/bustools/build.sh +++ b/recipes/bustools/build.sh @@ -1,10 +1,21 @@ #!/bin/bash set -euo pipefail -export CPATH=$PREFIX/include +export CPATH="${PREFIX}/include" +export LIBRARY_PATH="${PREFIX}/lib" +export LDFLAGS="${LDFLAGS} -L$PREFIX/lib" +export CXXFLAGS="${CXXFLAGS} -std=c++14 -O3 -I${PREFIX}/include" -mkdir build -cd build -cmake -DCMAKE_INSTALL_PREFIX:PATH=$PREFIX .. -make -make install +if [[ `uname` == "Darwin" ]]; then + export CONFIG_ARGS="-DCMAKE_FIND_FRAMEWORK=NEVER -DCMAKE_FIND_APPBUNDLE=NEVER" +else + export CONFIG_ARGS="" +fi + +cmake -S. -B build -DCMAKE_INSTALL_PREFIX="${PREFIX}" \ + -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER="${CXX}" \ + -DCMAKE_CXX_FLAGS="${CXXFLAGS}" -DCMAKE_C_COMPILER="${CC}" \ + -DCMAKE_C_FLAGS="${CFLAGS} -O3" \ + "${CONFIG_ARGS}" + +cmake --build build --target install -v diff --git a/recipes/bustools/meta.yaml b/recipes/bustools/meta.yaml index fed8ae7701f0b..7e114c40dd6d9 100644 --- a/recipes/bustools/meta.yaml +++ b/recipes/bustools/meta.yaml @@ -1,4 +1,4 @@ -{% set version = "0.44.0" %} +{% set version = "0.44.1" %} package: name: bustools @@ -6,7 +6,7 @@ package: source: url: https://github.com/BUStools/bustools/archive/v{{ version }}.tar.gz - sha256: e9a12be416d5d3940dd0ec3bfb0be3a481f2eea7d4411df1ab24c814332d99b8 + sha256: 829d7ca129b4c4911cae35bc2b87cac5d3a7845387b9a6487765aec84108d732 build: number: 0 @@ -27,14 +27,19 @@ test: - bustools sort about: - home: https://github.com/BUStools/bustools - license: BSD-2-Clause "Simplified" License + home: "https://github.com/BUStools/bustools" + license: 'BSD-2-Clause "Simplified" License' license_family: BSD license_file: LICENSE summary: | bustools is a program for manipulating BUS files for single cell RNA-Seq datasets. + dev_url: "https://github.com/BUStools/bustools" + doc_url: "https://bustools.github.io/manual" extra: additional-platforms: - linux-aarch64 - osx-arm64 + identifiers: + - biotools:BUStools + - doi:10.1038/s41587-021-00870-2