{% set name = "diamond" %}
{% set version = "0.8.36" %}
{% set md5 = "fbd2f48c0100a528872ebd1543a85eb0" %}

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

source:
  url: https://github.com/bbuchfink/{{ name }}/archive/v{{ version }}.tar.gz
  md5: {{ md5 }}

build:
  number: 9
  skip: False
  run_exports:
    - {{ pin_subpackage('diamond', max_pin="x") }}

# We pin on gcc version to avoid gcc-5 dual ABI issues depending on boost.
requirements:
  build:
    - {{ compiler('c') }}
    - {{ compiler('cxx') }}
    - cmake <4
    - make
  host:
    - zlib
  run:
    - zlib

test:
  commands:
    - diamond --help 2>&1 > /dev/null

about:
  home: http://ab.inf.uni-tuebingen.de/software/diamond/
  license: BSD
  summary: Accelerated BLAST compatible local sequence aligner

extra:
  additional-platforms:
    - linux-aarch64
  identifiers:
    - biotools:Diamond
    - doi:10.1038/nmeth.3176
