{% set name = "vg" %}
{% set version = "1.59.0" %}

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

source:
  - url: https://github.com/vgteam/vg/releases/download/v{{ version }}/vg       # [linux and x86_64]
    sha256: a2270237c8541867ac345ad924c1641881bc9fd60be157a6d3d29fa910aacfc2    # [linux and x86_64]
  - url: https://github.com/vgteam/vg/releases/download/v{{ version }}/vg-arm64 # [linux and aarch64]
    sha256: e0df4e81e0c7b3ac1c7f3fc7a7bc8421416256bf2bc4a1ca2b87feebaf40d4d0    # [linux and aarch64]

build:
  number: 0
  skip: true  # [osx]
  script:
    - mkdir -p ${PREFIX}/bin
    - cp vg* ${PREFIX}/bin/vg
    - chmod +x ${PREFIX}/bin/vg
  run_exports:
    - {{ pin_subpackage('vg', max_pin="x") }}

test:
  commands:
    - vg help

about:
  home: https://github.com/vgteam/vg
  license: MIT
  license_family: MIT
  summary: Variation graph data structures, interchange formats, alignment, genotyping, and variant calling methods

extra:
  additional-platforms:
    - linux-aarch64
  skip-lints:
    - should_be_noarch_generic
