{% set name = "nextclade" %}
{% set version = "2.3.0" %}

package:
  name: "{{ name|lower }}"
  version: "{{ version }}"

source:
  - url: https://github.com/nextstrain/nextclade/releases/download/{{ version }}/{{ name }}-x86_64-unknown-linux-gnu   # [linux64]
    sha256: fd84c43573f106ad4ff44989d0f8544ea239d120da161d24d14523aaf6a71534                                           # [linux64]
  - url: https://github.com/nextstrain/nextclade/releases/download/{{ version }}/{{ name }}-x86_64-apple-darwin        # [osx and x86_64]
    sha256: 6f87ffa49c3bf349b94b630950b5baf30d0508f411a6660ed28d747168c0733b                                           # [osx and x86_64]
  - url: https://github.com/nextstrain/nextclade/releases/download/{{ version }}/{{ name }}-aarch64-apple-darwin       # [arm64]
    sha256: c62edc9f88c315c4b0e243bde01a48dc0e49d3270df570b9ddc7216cd6eabff2                                           # [arm64]

build:
  number: 0
  binary_relocation: False

requirements:

test:
  commands:
    - nextclade --help

about:
  home: https://github.com/nextstrain/nextclade/tree/master/packages/nextclade_cli
  license: MIT
  license_family: MIT
  summary: "SARS-CoV-2 genome clade assignment, mutation calling, and sequence quality checks"
  doc_url: https://docs.nextstrain.org/projects/nextclade/en/stable/user/nextclade-cli.html#
  dev_url: https://github.com/nextstrain/nextclade 

extra:
  recipe-maintainers:
    - pvanheus
    - corneliusroemer 
  skip-lints:
    # repackaged binary
    - should_be_noarch_generic
