{% set version = '0.1.0' %}
{% set posix = 'm2-' if win else '' %}
{% set native = 'm2w64-' if win else '' %}

package:
  name: r-forge
  version: {{ version|replace("-", "_") }}

source:
  fn: forge_{{ version }}.tar.gz
  url:
    - {{ cran_mirror }}/src/contrib/forge_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/forge/forge_{{ version }}.tar.gz
  sha256: f132670d8b092564aad46b31dfbaac67d117596c12057e3511a8dbc94773408f

build:
  merge_build_host: True  # [win]
  number: 0
  skip: true  # [win32]
  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - {{posix}}zip               # [win]
  host:
    - r-base
    - r-rlang
  run:
    - r-base
    - r-rlang

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

about:
  home: https://CRAN.R-project.org/package=forge
  license: Apache-2-0
  summary: Helper functions with a consistent interface to coerce and verify the types and shapes
    of values for input checking.
  license_family: APACHE

extra:
  recipe-maintainers:
    - johanneskoester
    - bgruening
    - daler
    - jdblischak
    - cbrueffer
    - dbast
