{% set version = '0.3.2' %}

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

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

source:
  fn: funr_{{ version }}.tar.gz
  url:
    - https://cran.r-project.org/src/contrib/funr_{{ version }}.tar.gz
    - https://cran.r-project.org/src/contrib/Archive/funr/funr_{{ version }}.tar.gz
  sha256: e998fa1d773804e990553be2d3d2712d3c826725c5df320fe48acfa45668b286

build:
  number: 0
  skip: true  # [win32]

  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - r-base

  run:
    - r-base

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

about:
  home: https://github.com/sahilseth/funr
  license: MIT
  summary: A small utility which wraps Rscript and provides access to all R functions from the
    shell.
  license_family: MIT

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