{% set name = "MBG" %}
{% set version = "1.0.16" %}

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


source:
  url: https://github.com/maickrau/{{ name }}/files/13408153/{{ name }}.tar.gz
  sha256: b51f1013c72baed3f2f725bb605e98eb290df285afae7ba219b1cadd9791a50e
  patches:
    - version.patch
    - osx_availability.patch # [osx]
    - mbg-aarch64.patch # [aarch64 or arm64]

build:
  number: 1
  run_exports:
    - {{ pin_subpackage('mbg', max_pin="x.x") }}

requirements:
  build:
    - make
    - {{ compiler('cxx') }}
  host:
    - zlib

test:
  commands:
    - MBG -v 2>&1 | grep Version

about:
  home: https://github.com/maickrau/MBG
  license: MIT
  license_file: LICENSE.md
  summary: Minimizer based sparse de Bruijn graph constructor

extra:
  additional-platforms:
    - linux-aarch64
    - osx-arm64