{% set name = "nextclade" %}
{% set version = "3.1.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: 949ec8ea1eb9705529425543292347ce7fbf9c799ec9f82fb3a9dab5f9e39450                                           # [linux64]
  - url: https://github.com/nextstrain/nextclade/releases/download/{{ version }}/{{ name }}-x86_64-apple-darwin        # [osx and x86_64]
    sha256: 878523f7c278c16bb19c47ab6421c63ccb876bbd2820cc997bcda62dcf3eb4d4                                           # [osx and x86_64]
  - url: https://github.com/nextstrain/nextclade/releases/download/{{ version }}/{{ name }}-aarch64-apple-darwin       # [arm64]
    sha256: 967ed5de693aa162ba010521d397462c7a73ff9430b2d70af42bc05b52782881                                           # [arm64]

build:
  number: 0
  binary_relocation: False
  run_exports:
  - {{ pin_compatible(name, max_pin='x') }}

requirements:

test:
  commands:
    - nextclade --help

about:
  home: https://github.com/nextstrain/nextclade
  license: MIT
  license_family: MIT
  summary: "Viral genome alignment, mutation calling, clade assignment, quality checks and phylogenetic placement"
  doc_url: https://docs.nextstrain.org/projects/nextclade/en/stable/
  dev_url: https://github.com/nextstrain/nextclade

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