{% set name = "ncbi-vdb" %}
{% set version = "3.4.1" %}

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

build:
  number: 0
  run_exports:
    - {{ pin_subpackage('ncbi-vdb', max_pin='x') }}

source:
  url: https://github.com/ncbi/ncbi-vdb/archive/{{ version }}.tar.gz
  sha256: 2fa0919b2842641ead93eeeb45047e87ca480a543b6e4eda15f94d5187e91c85
  folder: ncbi-vdb
  patches:
    - env.cmake.patch  # [osx]

requirements:
  build:
    - {{ compiler('cxx') }}
    - bison
    - cmake
    - flex
    - make

about:
  home: "https://github.com/ncbi/ncbi-vdb"
  license: Public Domain
  summary: "SRA tools database engine."
  description: |
    "VDB is the database engine that all SRA tools use. It is a columnar database
    system with a number of unique features. All SRA objects are stored in VDB."
  dev_url: "https://github.com/ncbi/ncbi-vdb"
  doc_url: "https://github.com/ncbi/ncbi-vdb/wiki"

test:
  commands:
    - test -e ${PREFIX}/lib/libncbi-vdb.so  # [not osx]
    - test -e ${PREFIX}/lib/libncbi-vdb.dylib  # [osx]

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