{% set version = "1.22.0" %}
{% set name = "Rhdf5lib" %}
{% set full_name = "bioconductor-" ~ name|lower %}
{% set bioc = "3.17" %}

package:
  name: '{{ full_name }}'
  version: '{{ version }}'
source:
  url:
    - 'https://bioconductor.org/packages/{{ bioc }}/bioc/src/contrib/{{ name }}_{{ version }}.tar.gz'
    - 'https://bioconductor.org/packages/{{ bioc }}/bioc/src/contrib/Archive/{{ name }}/{{ name }}_{{ version }}.tar.gz'
    - 'https://bioarchive.galaxyproject.org/{{ name }}_{{ version }}.tar.gz'
    - 'https://depot.galaxyproject.org/software/{{ full_name }}/{{ full_name }}_{{ version }}_src_all.tar.gz'
  md5: 27c19bd24858ba26ff4762d41f3b2a16
build:
  number: 1
  rpaths:
    - lib/R/lib/
    - lib/
  run_exports:
    # This pinning is preliminary. It should be changed if either:
    # * a general policy for pinning bioconductor packages is decided and differs:
    #   https://github.com/bioconda/bioconda-recipes/issues/43905
    # * the author of this package assures us that he adheres to semantic
    #   versioning, in which case we can unpin the minor version, see:
    #   https://github.com/grimbough/rhdf5/issues/131#issuecomment-1782567153
    - {{ pin_subpackage(full_name, max_pin="x.x") }}
# Suggests: BiocStyle, knitr, rmarkdown, tinytest, mockery
# SystemRequirements: GNU make
requirements:
  build:
    - {{ compiler('c') }}
    - automake
    - make
  host:
    - r-base
    - libblas
    - liblapack
    - libcurl
  run:
    - r-base
test:
  commands:
    - '$R -e "library(''{{ name }}'')"'
about:
  home: 'https://bioconductor.org/packages/{{ bioc }}/bioc/html/{{ name }}.html'
  license: Artistic-2.0
  summary: 'hdf5 library as an R package'
  description: 'Provides C and C++ hdf5 libraries.'
extra:
  parent_recipe:
    name: '{{ full_name }}'
    path: 'recipes/{{ full_name }}'
    version: 1.2.1

