{% set version = "3.0.10" %}

package:
  name: ncbi-vdb
  version: {{ version }}

build:
  number: 0
  skip: True # [osx]
  run_exports:
    - {{ pin_subpackage('ncbi-vdb', max_pin='x') }}

source:
  url: https://github.com/ncbi/ncbi-vdb/archive/{{ version }}.tar.gz
  sha256: 2e088a8542e6c3bc1aad01a5d2fca2ef5b745c36a3aafd3b0b42cb53b42b345d
  folder: ncbi-vdb

requirements:    
  build:
    - {{ compiler('c') }}
    - {{ compiler('cxx') }}
    - bison
    - cmake
    - flex
    - make
  run:
    - ca-certificates
    - curl
    - ossuuid
    - perl
    - perl-xml-libxml
    - perl-uri

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.

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

