{% set version = "2.26" %}

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

source:
  url: https://github.com/lh3/minimap2/archive/v{{ version }}.tar.gz
  sha256: f4c8c3459c7b87e9de6cbed7de019b48d9337c2e46b87ba81b9f72d889420b3c

build:
  number: 2
  run_exports:
    - {{ pin_subpackage('minimap2', max_pin="x") }}

requirements:
  build:
    - make
    - {{ compiler('c') }}
  host:
    - zlib
  run:
    - k8
    - zlib

test:
  commands:
    - minimap2 2>&1 | grep 'Usage'
    - paftools.js version | grep {{ version }}
    - sdust  2>&1 | grep 'Usage'
    - test -e $PREFIX/lib/libminimap2.a
    - test -e $PREFIX/include/minimap.h

about:
  home: https://github.com/lh3/minimap2
  license: MIT
  license_file: LICENSE.txt
  summary: 'A versatile pairwise aligner for genomic and spliced nucleotide sequences.'
