diff --git a/recipes/raxml/build.sh b/recipes/raxml/build.sh index 6dd8706245751..92f87d162d35e 100644 --- a/recipes/raxml/build.sh +++ b/recipes/raxml/build.sh @@ -1,19 +1,28 @@ #!/bin/bash -case `uname` in -Darwin) SUF=.mac;; -Linux) SUF=.gcc;; -*) echo "Unknown architecture"; exit 1;; +set -exo pipefail + +case $(uname) in +Darwin) SUF=.mac ;; +Linux) SUF=.gcc ;; +*) + echo "Unknown architecture" + exit 1 + ;; esac ARCH=$(uname -m) -mkdir -p $PREFIX/bin +mkdir -p "$PREFIX"/bin for PTHREADS in "" .PTHREADS; do for OPT in "" .SSE3 .AVX2; do - if [ "${ARCH}" == "aarch64" -a "${OPT}" == ".AVX2" ]; then + if [[ "${ARCH}" == "aarch64" && "${OPT}" == ".AVX2" ]]; then + continue + fi + + if [[ ${ARCH} == "arm64" && ("${OPT}" == ".AVX2" || "${OPT}" == ".SSE3" || "${PTHREADS}" == ".PTHREADS") ]]; then continue fi @@ -25,7 +34,7 @@ for PTHREADS in "" .PTHREADS; do MAKEFILE=${MAKEFILE}.gcc fi make -f ${MAKEFILE} CC=$CC - mv raxmlHPC* $PREFIX/bin + mv raxmlHPC* "$PREFIX"/bin make -f ${MAKEFILE} clean done done diff --git a/recipes/raxml/meta.yaml b/recipes/raxml/meta.yaml index b98b2551cc414..b7e8de64fbd89 100644 --- a/recipes/raxml/meta.yaml +++ b/recipes/raxml/meta.yaml @@ -3,7 +3,7 @@ package: version: "8.2.13" build: - number: 1 + number: 2 run_exports: - {{ pin_subpackage('raxml', max_pin="x") }} @@ -19,11 +19,11 @@ requirements: test: commands: - raxmlHPC -h > /dev/null - - raxmlHPC-PTHREADS -h > /dev/null - - raxmlHPC-SSE3 -h > /dev/null - - raxmlHPC-PTHREADS-SSE3 -h > /dev/null - - 'raxmlHPC-AVX2 -h > /dev/null' # [not aarch64] - - 'raxmlHPC-PTHREADS-AVX2 -h > /dev/null' # [not aarch64] + - raxmlHPC-PTHREADS -h > /dev/null # [not arm64] + - raxmlHPC-SSE3 -h > /dev/null # [not arm64] + - raxmlHPC-PTHREADS-SSE3 -h > /dev/null # [not arm64] + - 'raxmlHPC-AVX2 -h > /dev/null' # [not (aarch64 or arm64)] + - 'raxmlHPC-PTHREADS-AVX2 -h > /dev/null' # [not (aarch64 or arm64)] about: home: http://sco.h-its.org/exelixis/web/software/raxml/index.html @@ -33,6 +33,7 @@ about: extra: additional-platforms: - linux-aarch64 + - osx-arm64 identifiers: - biotools:raxml - doi:10.1093/bioinformatics/btu033