{% set version = '0.4.0' %}

package:
  name: r-rredlist
  version: {{ version }}

source:
  fn: rredlist_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/rredlist_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/rredlist/rredlist_{{ version }}.tar.gz
  sha256: 9e59d3c5830322ed85762bbb3273b59befe59c3feabfe7d2f32de96fc4525048

build:
  number: 0
  script: R CMD INSTALL --build .
  skip: True  # [win32]
  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - r-base
    - r-crul >=0.3.8
    - r-jsonlite >=1.1
  run:
    - r-base
    - r-crul >=0.3.8
    - r-jsonlite >=1.1

test:
  commands:
    - $R -e "library('rredlist')"  # [not win]
    - "\"%R%\" -e \"library('rredlist')\""  # [win]

about:
  home: https://cran.r-project.org/package=rredlist
  license: MIT
  license_file: LICENSE
  summary: 'IUCN Red List'

extra:
  recipe-maintainers:
    - ocefpaf
