package:
  name: bamtools
  version: '2.3.0'

source:
  url: "https://github.com/pezmaster31/bamtools/archive/v2.3.0.tar.gz"
  sha256: "288046e6d5d41afdc5fce8608c5641cf2b8e670644587c1315b90bbe92f039af"
  patches:
    # Install bamtools in lib instead of bamtools lib, thanks to homebrew-science:
    # https://github.com/Homebrew/homebrew-science/blob/master/bamtools.rb
    - bamtools_lib.diff

build:
  number: 2

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

test:
  commands:
    - bamtools --help > /dev/null 2>&1

about:
  home: https://github.com/pezmaster31/bamtools
  license: MIT
  summary: C++ API & command-line toolkit for working with BAM data

extra:
  identifiers:
    - biotools:bamtools
