{% set version = "5.20.4" %}
{% set sha256 = "02c225d3513e1f5d6e3c0168456f568e67f006eddaab82f09b4bdf0d53d2050e" %}

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

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

source:
  url: https://github.com/sbmlteam/libsbml/archive/refs/tags/v{{ version }}.tar.gz
  sha256: {{ sha256 }}

requirements:
  build:
    - make
    - {{ compiler('c') }}
    - {{ compiler('cxx') }}
    - cmake
  host:
    - bzip2
    - libxml2
    - zlib
  run:
    - libxml2
    
test:
  commands:
    - test -f "${PREFIX}/lib/libsbml${SHLIB_EXT-.so}"  # [linux]
    - test -f "${PREFIX}/lib/libsbml${SHLIB_EXT-.dylib}"  # [osx]    

about:
  home: http://sbml.org/Software/libSBML
  license: LGPL
  license_file: 'LICENSE.txt'
  summary: LibSBML is a free, open-source programming library to help you read, write, manipulate, translate, and validate SBML files and data streams.
